{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "0995a262-7141-4a35-bf45-e7280f21885f",
   "metadata": {},
   "source": [
    "# Reading Data from XBRL Files\n",
    "\n",
    "Some SEC filings, including **10-K's** and **10-Qs**, have XBRL files as attachments. This notebook shows how to access the data within these XBRL files."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8fde2744-72c3-4cc4-b6cc-cdeb7d803455",
   "metadata": {},
   "source": [
    "**[Open this notebook in Google Colab](http://colab.research.google.com/github/dgunning/edgartools/blob/main/notebooks/Reading-Data-From-XBRL.ipynb)**"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e1d009c9-220c-4242-97af-f57cfb1054ea",
   "metadata": {},
   "source": [
    "## Install edgartools"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6edccaa6-5b20-4320-a59f-50b982098788",
   "metadata": {},
   "outputs": [],
   "source": [
    "!pip install edgartools"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "54fb7dce-cd50-4169-815a-54799fbae1d2",
   "metadata": {},
   "source": [
    "## Import edgar"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "7ff5a292-66ef-4b57-ae7d-6929d212c332",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7fbfbf; text-decoration-color: #7fbfbf\">[16:43:54] </span><span style=\"color: #000080; text-decoration-color: #000080\">INFO    </span> Identity of the Edgar REST client set to <span style=\"font-weight: bold\">[</span>name@gmail.com<span style=\"font-weight: bold\">]</span>                           <span style=\"color: #7f7f7f; text-decoration-color: #7f7f7f\">core.py:160</span>\n",
       "</pre>\n"
      ],
      "text/plain": [
       "\u001B[2;36m[16:43:54]\u001B[0m\u001B[2;36m \u001B[0m\u001B[34mINFO    \u001B[0m Identity of the Edgar REST client set to \u001B[1m[\u001B[0mname@gmail.com\u001B[1m]\u001B[0m                           \u001B[2mcore.py\u001B[0m\u001B[2m:\u001B[0m\u001B[2m160\u001B[0m\n"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from edgar import *\n",
    "\n",
    "set_identity(\"name@gmail.com\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d8668b2c-4dce-480d-9806-ad5588b0fa4c",
   "metadata": {},
   "source": [
    "## Getting a filing with XBRL"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "943cb51e-4c2f-4326-b3b7-2f19c3ff0559",
   "metadata": {},
   "outputs": [],
   "source": "from legacy.xbrl import *"
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "1261ef8f-b77a-4847-a5a2-848e2cbc4f8a",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "╭──────────────────────────────────────────\u001B[1m Apple Inc. [320193] 10-Q 📊 \u001B[0m──────────────────────────────────────────╮\n",
       "│ ╭──────────────────────┬────────────╮                                                                           │\n",
       "│ │\u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m0000320193-24-000081\u001B[0m\u001B[1;38;5;39m \u001B[0m│ 2024-08-02 │                                                                           │\n",
       "│ ╰──────────────────────┴────────────╯                                                                           │\n",
       "│ ╭───────────────────────────────────────────────────────────────────────────────────────────╮                   │\n",
       "│ │\u001B[1m \u001B[0m\u001B[1mLinks\u001B[0m\u001B[1m: 🏠 Homepage 📄 Primary Document 📜 Full Submission Text                           \u001B[0m\u001B[1m \u001B[0m│                   │\n",
       "│ ├───────────────────────────────────────────────────────────────────────────────────────────┤                   │\n",
       "│ │ 🏠 https://sec.gov/Archives/edgar/data/320193/0000320193-24-000081-index.html             │                   │\n",
       "│ │ 📄 https://sec.gov/Archives/edgar/data/320193/000032019324000081/aapl-20240629.htm        │                   │\n",
       "│ │ 📜 https://sec.gov/Archives/edgar/data/320193/000032019324000081/0000320193-24-000081.txt │                   │\n",
       "│ ╰───────────────────────────────────────────────────────────────────────────────────────────╯                   │\n",
       "╰─────────────────────────────── Form 10-Q: Quarterly report for public companies ────────────────────────────────╯"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "filing = Company(\"AAPL\").get_filings(form=\"10-Q\").latest(1)\n",
    "filing"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "847ed78f-49d5-43b2-aeae-96bad8269572",
   "metadata": {},
   "source": [
    "## Getting XBRL from a filing\n",
    "The easiest way to parse XBRL is to call the `.xbrl()` function. This will return an `XbrlInstance` object for simple cases, and `XbrlData` object for more complicated XBRL, or `None` if the filing does not have XBRL."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "d9c431d4-2948-4dfc-bd6a-36cf79e7742f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "╭─────────────────────────────────────────── XBRL Data for \u001B[1;38;5;32mApple Inc. \u001B[0m ───────────────────────────────────────────╮\n",
       "│ \u001B[3m              XBRL Instance Document              \u001B[0m                                                              │\n",
       "│ ╭────────────┬─────────────────┬─────────────────╮                                                              │\n",
       "│ │\u001B[1m \u001B[0m\u001B[1mCompany   \u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mNumber of Facts\u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mDocument Period\u001B[0m\u001B[1m \u001B[0m│                                                              │\n",
       "│ ├────────────┼─────────────────┼─────────────────┤                                                              │\n",
       "│ │ Apple Inc. │ 1,164           │ 2023-09-30      │                                                              │\n",
       "│ ╰────────────┴─────────────────┴─────────────────╯                                                              │\n",
       "│ ╭────┬────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │\n",
       "│ │\u001B[1m \u001B[0m\u001B[1m  \u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mStatements                                                                                            \u001B[0m\u001B[1m \u001B[0m│ │\n",
       "│ ├────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │\n",
       "│ │ 0  │ \u001B[38;5;32mCover\u001B[0m\u001B[38;5;160mPage\u001B[0m                                                                                              │ │\n",
       "│ │ 1  │ \u001B[38;5;32mAuditor\u001B[0m\u001B[38;5;160mInformation\u001B[0m                                                                                     │ │\n",
       "│ │ 2  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFOPERATIONS\u001B[0m                                                                     │ │\n",
       "│ │ 3  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME\u001B[0m                                                            │ │\n",
       "│ │ 4  │ \u001B[38;5;32mCONSOLIDATEDBALANCESHEETS\u001B[0m                                                                              │ │\n",
       "│ │ 5  │ \u001B[38;5;32mCONSOLIDATEDBALANCESHEETS\u001B[0m\u001B[38;5;160mParenthetical\u001B[0m                                                                 │ │\n",
       "│ │ 6  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY\u001B[0m                                                             │ │\n",
       "│ │ 7  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFCASHFLOWS\u001B[0m                                                                      │ │\n",
       "│ │ 8  │ \u001B[38;5;32mSummaryof\u001B[0m\u001B[38;5;160mSignificant\u001B[0m\u001B[38;5;71mAccounting\u001B[0m\u001B[38;5;32mPolicies\u001B[0m                                                                 │ │\n",
       "│ │ 9  │ \u001B[38;5;32mRevenue\u001B[0m                                                                                                │ │\n",
       "│ │ 10 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m                                                                                       │ │\n",
       "│ │ 11 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m                                                                                   │ │\n",
       "│ │ 12 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m                                                                              │ │\n",
       "│ │ 13 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                  │ │\n",
       "│ │ 14 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m                                                                                            │ │\n",
       "│ │ 15 │ \u001B[38;5;32mLeases\u001B[0m                                                                                                 │ │\n",
       "│ │ 16 │ \u001B[38;5;32mDebt\u001B[0m                                                                                                   │ │\n",
       "│ │ 17 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m                                                                                     │ │\n",
       "│ │ 18 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m                                                                                 │ │\n",
       "│ │ 19 │ \u001B[38;5;32mCommitments\u001B[0m\u001B[38;5;160mContingenciesand\u001B[0m\u001B[38;5;71mSupply\u001B[0m\u001B[38;5;32mConcentrations\u001B[0m                                                        │ │\n",
       "│ │ 20 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m                                                                    │ │\n",
       "│ │ 21 │ \u001B[38;5;32mSummaryof\u001B[0m\u001B[38;5;160mSignificant\u001B[0m\u001B[38;5;71mAccounting\u001B[0m\u001B[38;5;32mPolicies\u001B[0m\u001B[38;5;160mPolicies\u001B[0m                                                         │ │\n",
       "│ │ 22 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                                                          │ │\n",
       "│ │ 23 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mTables\u001B[0m                                                                                 │ │\n",
       "│ │ 24 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mTables\u001B[0m                                                                             │ │\n",
       "│ │ 25 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m\u001B[38;5;32mTables\u001B[0m                                                                        │ │\n",
       "│ │ 26 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                            │ │\n",
       "│ │ 27 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mTables\u001B[0m                                                                                      │ │\n",
       "│ │ 28 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                                                           │ │\n",
       "│ │ 29 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                                                             │ │\n",
       "│ │ 30 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m\u001B[38;5;71mTables\u001B[0m                                                                               │ │\n",
       "│ │ 31 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mTables\u001B[0m                                                                           │ │\n",
       "│ │ 32 │ \u001B[38;5;32mCommitments\u001B[0m\u001B[38;5;160mContingenciesand\u001B[0m\u001B[38;5;71mSupply\u001B[0m\u001B[38;5;32mConcentrations\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                  │ │\n",
       "│ │ 33 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                              │ │\n",
       "│ │ 34 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mAdditional\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                    │ │\n",
       "│ │ 35 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mNet\u001B[0m\u001B[38;5;71mSales\u001B[0m\u001B[38;5;32mDisaggregatedby\u001B[0m\u001B[38;5;160mSignificant\u001B[0m\u001B[38;5;71mProductsand\u001B[0m\u001B[38;5;32mServices\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                    │ │\n",
       "│ │ 36 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mDeferred\u001B[0m\u001B[38;5;71mRevenue\u001B[0m\u001B[38;5;32mExpected\u001B[0m\u001B[38;5;160mTimingof\u001B[0m\u001B[38;5;71mRealization\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                               │ │\n",
       "│ │ 37 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mComputationof\u001B[0m\u001B[38;5;160mBasicand\u001B[0m\u001B[38;5;71mDiluted\u001B[0m\u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                    │ │\n",
       "│ │ 38 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mAdditional\u001B[0m\u001B[38;5;160mInformation\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                           │ │\n",
       "│ │ 39 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mCash\u001B[0m\u001B[38;5;32mCash\u001B[0m\u001B[38;5;160mEquivalentsand\u001B[0m\u001B[38;5;71mMarketable\u001B[0m\u001B[38;5;32mSecurities\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                  │ │\n",
       "│ │ 40 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mNon\u001B[0m\u001B[38;5;32mCurrent\u001B[0m\u001B[38;5;160mMarketable\u001B[0m\u001B[38;5;71mDebt\u001B[0m\u001B[38;5;32mSecuritiesby\u001B[0m\u001B[38;5;160mContractual\u001B[0m\u001B[38;5;71mMaturity\u001B[0m\u001B[38;5;32mDetails\u001B[0m                     │ │\n",
       "│ │ 41 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mAdditional\u001B[0m\u001B[38;5;32mInformation\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                       │ │\n",
       "│ │ 42 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mNotional\u001B[0m\u001B[38;5;32mAmounts\u001B[0m\u001B[38;5;160mAssociatedwith\u001B[0m\u001B[38;5;71mDerivative\u001B[0m\u001B[38;5;32mInstruments\u001B[0m\u001B[38;5;160mDetails\u001B[0m                          │ │\n",
       "│ │ 43 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mGross\u001B[0m\u001B[38;5;32mFair\u001B[0m\u001B[38;5;160mValuesof\u001B[0m\u001B[38;5;71mDerivative\u001B[0m\u001B[38;5;32mAssetsand\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                             │ │\n",
       "│ │ 44 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mDerivative\u001B[0m\u001B[38;5;32mInstruments\u001B[0m\u001B[38;5;160mDesignatedas\u001B[0m\u001B[38;5;71mFair\u001B[0m\u001B[38;5;32mValue\u001B[0m\u001B[38;5;160mHedgesand\u001B[0m\u001B[38;5;71mRelated\u001B[0m\u001B[38;5;32mHedged\u001B[0m\u001B[38;5;160mItems\u001B[0m\u001B[38;5;71mDetails\u001B[0m       │ │\n",
       "│ │ 45 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m\u001B[38;5;32mGross\u001B[0m\u001B[38;5;160mProperty\u001B[0m\u001B[38;5;71mPlantand\u001B[0m\u001B[38;5;32mEquipmentby\u001B[0m\u001B[38;5;160mMajor\u001B[0m\u001B[38;5;71mAsset\u001B[0m\u001B[38;5;32mClassand\u001B[0m\u001B[38;5;160mAccumulated\u001B[0m\u001B[38;5;71mDepreciation\u001B[0m\u001B[38;5;32mDet…\u001B[0m │ │\n",
       "│ │ 46 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m\u001B[38;5;32mAdditional\u001B[0m\u001B[38;5;160mInformation\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                  │ │\n",
       "│ │ 47 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mNon\u001B[0m\u001B[38;5;32mCurrent\u001B[0m\u001B[38;5;160mAssets\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                      │ │\n",
       "│ │ 48 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mCurrent\u001B[0m\u001B[38;5;32mLiabilities\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                    │ │\n",
       "│ │ 49 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mNon\u001B[0m\u001B[38;5;32mCurrent\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                 │ │\n",
       "│ │ 50 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mIncome\u001B[0m\u001B[38;5;32mExpense\u001B[0m\u001B[38;5;160mNet\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                      │ │\n",
       "│ │ 51 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mProvisionfor\u001B[0m\u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                              │ │\n",
       "│ │ 52 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mAdditional\u001B[0m\u001B[38;5;32mInformation\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                                │ │\n",
       "│ │ 53 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mReconciliationof\u001B[0m\u001B[38;5;32mProvisionfor\u001B[0m\u001B[38;5;160mIncome\u001B[0m\u001B[38;5;71mTaxesto\u001B[0m\u001B[38;5;32mAmount\u001B[0m\u001B[38;5;160mComputedby\u001B[0m\u001B[38;5;71mApplyingthe\u001B[0m\u001B[38;5;32mStatutory\u001B[0m\u001B[38;5;160mFederal\u001B[0m\u001B[38;5;71mIncome\u001B[0m\u001B[38;5;32m…\u001B[0m │ │\n",
       "│ │ 54 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mSignificant\u001B[0m\u001B[38;5;32mComponentsof\u001B[0m\u001B[38;5;160mDeferred\u001B[0m\u001B[38;5;71mTax\u001B[0m\u001B[38;5;32mAssetsand\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                               │ │\n",
       "│ │ 55 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mAggregate\u001B[0m\u001B[38;5;32mChangesin\u001B[0m\u001B[38;5;160mGross\u001B[0m\u001B[38;5;71mUnrecognized\u001B[0m\u001B[38;5;32mTax\u001B[0m\u001B[38;5;160mBenefits\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                       │ │\n",
       "│ │ 56 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mAdditional\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                     │ │\n",
       "│ │ 57 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mROU\u001B[0m\u001B[38;5;71mAssetsand\u001B[0m\u001B[38;5;32mLease\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                              │ │\n",
       "│ │ 58 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mLease\u001B[0m\u001B[38;5;71mLiability\u001B[0m\u001B[38;5;32mMaturities\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                                  │ │\n",
       "│ │ 59 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mAdditional\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                       │ │\n",
       "│ │ 60 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mSummaryof\u001B[0m\u001B[38;5;71mCash\u001B[0m\u001B[38;5;32mFlows\u001B[0m\u001B[38;5;160mAssociatedwith\u001B[0m\u001B[38;5;71mCommercial\u001B[0m\u001B[38;5;32mPaper\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                             │ │\n",
       "│ │ 61 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mSummaryof\u001B[0m\u001B[38;5;71mTerm\u001B[0m\u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                                           │ │\n",
       "│ │ 62 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mFuture\u001B[0m\u001B[38;5;71mPrincipal\u001B[0m\u001B[38;5;32mPaymentsfor\u001B[0m\u001B[38;5;160mTerm\u001B[0m\u001B[38;5;71mDebt\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                          │ │\n",
       "│ │ 63 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m\u001B[38;5;71mAdditional\u001B[0m\u001B[38;5;32mInformation\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                         │ │\n",
       "│ │ 64 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m\u001B[38;5;71mSharesof\u001B[0m\u001B[38;5;32mCommon\u001B[0m\u001B[38;5;160mStock\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                           │ │\n",
       "│ │ 65 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mAdditional\u001B[0m\u001B[38;5;160mInformation\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                     │ │\n",
       "│ │ 66 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mRestricted\u001B[0m\u001B[38;5;160mStock\u001B[0m\u001B[38;5;71mUnit\u001B[0m\u001B[38;5;32mActivityand\u001B[0m\u001B[38;5;160mRelated\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                          │ │\n",
       "│ │ 67 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mSummaryof\u001B[0m\u001B[38;5;160mShare\u001B[0m\u001B[38;5;71mBased\u001B[0m\u001B[38;5;32mCompensation\u001B[0m\u001B[38;5;160mExpenseandthe\u001B[0m\u001B[38;5;71mRelated\u001B[0m\u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTax\u001B[0m\u001B[38;5;71mBenefit\u001B[0m\u001B[38;5;32mDetails\u001B[0m       │ │\n",
       "│ │ 68 │ \u001B[38;5;32mCommitments\u001B[0m\u001B[38;5;160mContingenciesand\u001B[0m\u001B[38;5;71mSupply\u001B[0m\u001B[38;5;32mConcentrations\u001B[0m\u001B[38;5;160mFuture\u001B[0m\u001B[38;5;71mPayments\u001B[0m\u001B[38;5;32mUnder\u001B[0m\u001B[38;5;160mUnconditional\u001B[0m\u001B[38;5;71mPurchase\u001B[0m\u001B[38;5;32mObligations\u001B[0m\u001B[38;5;160mDet…\u001B[0m │ │\n",
       "│ │ 69 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mInformationby\u001B[0m\u001B[38;5;71mReportable\u001B[0m\u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mDetails\u001B[0m                               │ │\n",
       "│ │ 70 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mReconciliationof\u001B[0m\u001B[38;5;71mSegment\u001B[0m\u001B[38;5;32mOperating\u001B[0m\u001B[38;5;160mIncometothe\u001B[0m\u001B[38;5;71mConsolidated\u001B[0m\u001B[38;5;32mStatementso…\u001B[0m │ │\n",
       "│ │ 71 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mNet\u001B[0m\u001B[38;5;71mSales\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                     │ │\n",
       "│ │ 72 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mLong\u001B[0m\u001B[38;5;71mLived\u001B[0m\u001B[38;5;32mAssets\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                              │ │\n",
       "│ │ 73 │ \u001B[38;5;32mAward\u001B[0m\u001B[38;5;160mTiming\u001B[0m\u001B[38;5;71mDisclosure\u001B[0m                                                                                  │ │\n",
       "│ │ 74 │ \u001B[38;5;32mInsider\u001B[0m\u001B[38;5;160mTrading\u001B[0m\u001B[38;5;71mArrangements\u001B[0m                                                                             │ │\n",
       "│ │ 75 │ \u001B[38;5;32mErr\u001B[0m\u001B[38;5;160mComp\u001B[0m\u001B[38;5;71mDisclosure\u001B[0m                                                                                      │ │\n",
       "│ │ 76 │ \u001B[38;5;32mPvp\u001B[0m\u001B[38;5;160mDisclosure\u001B[0m                                                                                          │ │\n",
       "│ │ 77 │ \u001B[38;5;32mInsider\u001B[0m\u001B[38;5;160mTrading\u001B[0m\u001B[38;5;71mPolicies\u001B[0m\u001B[38;5;32mProc\u001B[0m                                                                             │ │\n",
       "│ ╰────┴────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │\n",
       "╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "xbrl_data = filing.xbrl()\n",
    "xbrl_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "2ed67c6b-a4de-4fdc-8fe6-f2f471e966b3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>value</th>\n",
       "      <th>units</th>\n",
       "      <th>decimals</th>\n",
       "      <th>start_date</th>\n",
       "      <th>end_date</th>\n",
       "      <th>period_type</th>\n",
       "      <th>duration</th>\n",
       "      <th>context_id</th>\n",
       "      <th>entity_id</th>\n",
       "      <th>dimensions</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>88</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>298085000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-14</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ProductM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>89</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>316199000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-15</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ProductM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>90</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>297392000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-16</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ProductM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>91</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>85200000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-17</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>92</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>78129000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-18</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>93</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>68425000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-19</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>94</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>383285000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-1</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>95</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>394328000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-20</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>96</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>365817000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-21</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>395</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>200583000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-47</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:IPhoneMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>396</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>205489000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-48</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:IPhoneMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>397</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>191973000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-49</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:IPhoneMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>398</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>29357000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-50</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:MacMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>399</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>40177000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-51</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:MacMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>400</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>35190000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-52</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:MacMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>401</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>28300000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-53</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:IPadMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>402</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>29292000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-54</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:IPadMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>403</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>31862000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-55</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:IPadMember'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>404</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>39845000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-56</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:WearablesHo...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>405</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>41241000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-57</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:WearablesHo...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>406</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>38367000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-58</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'aapl:WearablesHo...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>407</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>85200000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-17</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>408</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>78129000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-18</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>409</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>68425000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-19</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>410</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>383285000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-1</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>411</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>394328000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-20</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>412</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>365817000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-21</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1082</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>162560000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-162</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1083</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>169658000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-163</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1084</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>153306000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-164</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1088</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>94294000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-165</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1089</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>95118000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-166</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1090</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>89307000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-167</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1094</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>72559000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-168</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1095</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>74200000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-169</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1096</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>68366000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-170</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1100</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>24257000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-171</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1101</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>25977000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-172</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1102</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>28482000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-173</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1106</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>29615000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-174</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1107</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>29375000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-175</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1108</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>26356000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-176</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'us-gaap:StatementBusinessSegmentsAxis': 'aap...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1126</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>138573000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-186</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'country:US'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1127</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>147859000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-187</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'country:US'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1128</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>133803000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-188</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'country:US'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1129</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>72559000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-189</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'country:CN'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1130</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>74200000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-190</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'country:CN'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1131</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>68366000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-191</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'country:CN'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1132</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>172153000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-192</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'aapl:OtherC...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1133</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>172269000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-193</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'aapl:OtherC...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1134</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>163648000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-194</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{'srt:StatementGeographicalAxis': 'aapl:OtherC...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1135</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>383285000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2022-09-25</td>\n",
       "      <td>2023-09-30</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-1</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1136</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>394328000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2021-09-26</td>\n",
       "      <td>2022-09-24</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-20</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1137</th>\n",
       "      <td>us-gaap:RevenueFromContractWithCustomerExcludi...</td>\n",
       "      <td>365817000000</td>\n",
       "      <td>usd</td>\n",
       "      <td>-6</td>\n",
       "      <td>2020-09-27</td>\n",
       "      <td>2021-09-25</td>\n",
       "      <td>duration</td>\n",
       "      <td>annual</td>\n",
       "      <td>c-21</td>\n",
       "      <td>0000320193</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                concept         value units  \\\n",
       "88    us-gaap:RevenueFromContractWithCustomerExcludi...  298085000000   usd   \n",
       "89    us-gaap:RevenueFromContractWithCustomerExcludi...  316199000000   usd   \n",
       "90    us-gaap:RevenueFromContractWithCustomerExcludi...  297392000000   usd   \n",
       "91    us-gaap:RevenueFromContractWithCustomerExcludi...   85200000000   usd   \n",
       "92    us-gaap:RevenueFromContractWithCustomerExcludi...   78129000000   usd   \n",
       "93    us-gaap:RevenueFromContractWithCustomerExcludi...   68425000000   usd   \n",
       "94    us-gaap:RevenueFromContractWithCustomerExcludi...  383285000000   usd   \n",
       "95    us-gaap:RevenueFromContractWithCustomerExcludi...  394328000000   usd   \n",
       "96    us-gaap:RevenueFromContractWithCustomerExcludi...  365817000000   usd   \n",
       "395   us-gaap:RevenueFromContractWithCustomerExcludi...  200583000000   usd   \n",
       "396   us-gaap:RevenueFromContractWithCustomerExcludi...  205489000000   usd   \n",
       "397   us-gaap:RevenueFromContractWithCustomerExcludi...  191973000000   usd   \n",
       "398   us-gaap:RevenueFromContractWithCustomerExcludi...   29357000000   usd   \n",
       "399   us-gaap:RevenueFromContractWithCustomerExcludi...   40177000000   usd   \n",
       "400   us-gaap:RevenueFromContractWithCustomerExcludi...   35190000000   usd   \n",
       "401   us-gaap:RevenueFromContractWithCustomerExcludi...   28300000000   usd   \n",
       "402   us-gaap:RevenueFromContractWithCustomerExcludi...   29292000000   usd   \n",
       "403   us-gaap:RevenueFromContractWithCustomerExcludi...   31862000000   usd   \n",
       "404   us-gaap:RevenueFromContractWithCustomerExcludi...   39845000000   usd   \n",
       "405   us-gaap:RevenueFromContractWithCustomerExcludi...   41241000000   usd   \n",
       "406   us-gaap:RevenueFromContractWithCustomerExcludi...   38367000000   usd   \n",
       "407   us-gaap:RevenueFromContractWithCustomerExcludi...   85200000000   usd   \n",
       "408   us-gaap:RevenueFromContractWithCustomerExcludi...   78129000000   usd   \n",
       "409   us-gaap:RevenueFromContractWithCustomerExcludi...   68425000000   usd   \n",
       "410   us-gaap:RevenueFromContractWithCustomerExcludi...  383285000000   usd   \n",
       "411   us-gaap:RevenueFromContractWithCustomerExcludi...  394328000000   usd   \n",
       "412   us-gaap:RevenueFromContractWithCustomerExcludi...  365817000000   usd   \n",
       "1082  us-gaap:RevenueFromContractWithCustomerExcludi...  162560000000   usd   \n",
       "1083  us-gaap:RevenueFromContractWithCustomerExcludi...  169658000000   usd   \n",
       "1084  us-gaap:RevenueFromContractWithCustomerExcludi...  153306000000   usd   \n",
       "1088  us-gaap:RevenueFromContractWithCustomerExcludi...   94294000000   usd   \n",
       "1089  us-gaap:RevenueFromContractWithCustomerExcludi...   95118000000   usd   \n",
       "1090  us-gaap:RevenueFromContractWithCustomerExcludi...   89307000000   usd   \n",
       "1094  us-gaap:RevenueFromContractWithCustomerExcludi...   72559000000   usd   \n",
       "1095  us-gaap:RevenueFromContractWithCustomerExcludi...   74200000000   usd   \n",
       "1096  us-gaap:RevenueFromContractWithCustomerExcludi...   68366000000   usd   \n",
       "1100  us-gaap:RevenueFromContractWithCustomerExcludi...   24257000000   usd   \n",
       "1101  us-gaap:RevenueFromContractWithCustomerExcludi...   25977000000   usd   \n",
       "1102  us-gaap:RevenueFromContractWithCustomerExcludi...   28482000000   usd   \n",
       "1106  us-gaap:RevenueFromContractWithCustomerExcludi...   29615000000   usd   \n",
       "1107  us-gaap:RevenueFromContractWithCustomerExcludi...   29375000000   usd   \n",
       "1108  us-gaap:RevenueFromContractWithCustomerExcludi...   26356000000   usd   \n",
       "1126  us-gaap:RevenueFromContractWithCustomerExcludi...  138573000000   usd   \n",
       "1127  us-gaap:RevenueFromContractWithCustomerExcludi...  147859000000   usd   \n",
       "1128  us-gaap:RevenueFromContractWithCustomerExcludi...  133803000000   usd   \n",
       "1129  us-gaap:RevenueFromContractWithCustomerExcludi...   72559000000   usd   \n",
       "1130  us-gaap:RevenueFromContractWithCustomerExcludi...   74200000000   usd   \n",
       "1131  us-gaap:RevenueFromContractWithCustomerExcludi...   68366000000   usd   \n",
       "1132  us-gaap:RevenueFromContractWithCustomerExcludi...  172153000000   usd   \n",
       "1133  us-gaap:RevenueFromContractWithCustomerExcludi...  172269000000   usd   \n",
       "1134  us-gaap:RevenueFromContractWithCustomerExcludi...  163648000000   usd   \n",
       "1135  us-gaap:RevenueFromContractWithCustomerExcludi...  383285000000   usd   \n",
       "1136  us-gaap:RevenueFromContractWithCustomerExcludi...  394328000000   usd   \n",
       "1137  us-gaap:RevenueFromContractWithCustomerExcludi...  365817000000   usd   \n",
       "\n",
       "     decimals  start_date    end_date period_type duration context_id  \\\n",
       "88         -6  2022-09-25  2023-09-30    duration   annual       c-14   \n",
       "89         -6  2021-09-26  2022-09-24    duration   annual       c-15   \n",
       "90         -6  2020-09-27  2021-09-25    duration   annual       c-16   \n",
       "91         -6  2022-09-25  2023-09-30    duration   annual       c-17   \n",
       "92         -6  2021-09-26  2022-09-24    duration   annual       c-18   \n",
       "93         -6  2020-09-27  2021-09-25    duration   annual       c-19   \n",
       "94         -6  2022-09-25  2023-09-30    duration   annual        c-1   \n",
       "95         -6  2021-09-26  2022-09-24    duration   annual       c-20   \n",
       "96         -6  2020-09-27  2021-09-25    duration   annual       c-21   \n",
       "395        -6  2022-09-25  2023-09-30    duration   annual       c-47   \n",
       "396        -6  2021-09-26  2022-09-24    duration   annual       c-48   \n",
       "397        -6  2020-09-27  2021-09-25    duration   annual       c-49   \n",
       "398        -6  2022-09-25  2023-09-30    duration   annual       c-50   \n",
       "399        -6  2021-09-26  2022-09-24    duration   annual       c-51   \n",
       "400        -6  2020-09-27  2021-09-25    duration   annual       c-52   \n",
       "401        -6  2022-09-25  2023-09-30    duration   annual       c-53   \n",
       "402        -6  2021-09-26  2022-09-24    duration   annual       c-54   \n",
       "403        -6  2020-09-27  2021-09-25    duration   annual       c-55   \n",
       "404        -6  2022-09-25  2023-09-30    duration   annual       c-56   \n",
       "405        -6  2021-09-26  2022-09-24    duration   annual       c-57   \n",
       "406        -6  2020-09-27  2021-09-25    duration   annual       c-58   \n",
       "407        -6  2022-09-25  2023-09-30    duration   annual       c-17   \n",
       "408        -6  2021-09-26  2022-09-24    duration   annual       c-18   \n",
       "409        -6  2020-09-27  2021-09-25    duration   annual       c-19   \n",
       "410        -6  2022-09-25  2023-09-30    duration   annual        c-1   \n",
       "411        -6  2021-09-26  2022-09-24    duration   annual       c-20   \n",
       "412        -6  2020-09-27  2021-09-25    duration   annual       c-21   \n",
       "1082       -6  2022-09-25  2023-09-30    duration   annual      c-162   \n",
       "1083       -6  2021-09-26  2022-09-24    duration   annual      c-163   \n",
       "1084       -6  2020-09-27  2021-09-25    duration   annual      c-164   \n",
       "1088       -6  2022-09-25  2023-09-30    duration   annual      c-165   \n",
       "1089       -6  2021-09-26  2022-09-24    duration   annual      c-166   \n",
       "1090       -6  2020-09-27  2021-09-25    duration   annual      c-167   \n",
       "1094       -6  2022-09-25  2023-09-30    duration   annual      c-168   \n",
       "1095       -6  2021-09-26  2022-09-24    duration   annual      c-169   \n",
       "1096       -6  2020-09-27  2021-09-25    duration   annual      c-170   \n",
       "1100       -6  2022-09-25  2023-09-30    duration   annual      c-171   \n",
       "1101       -6  2021-09-26  2022-09-24    duration   annual      c-172   \n",
       "1102       -6  2020-09-27  2021-09-25    duration   annual      c-173   \n",
       "1106       -6  2022-09-25  2023-09-30    duration   annual      c-174   \n",
       "1107       -6  2021-09-26  2022-09-24    duration   annual      c-175   \n",
       "1108       -6  2020-09-27  2021-09-25    duration   annual      c-176   \n",
       "1126       -6  2022-09-25  2023-09-30    duration   annual      c-186   \n",
       "1127       -6  2021-09-26  2022-09-24    duration   annual      c-187   \n",
       "1128       -6  2020-09-27  2021-09-25    duration   annual      c-188   \n",
       "1129       -6  2022-09-25  2023-09-30    duration   annual      c-189   \n",
       "1130       -6  2021-09-26  2022-09-24    duration   annual      c-190   \n",
       "1131       -6  2020-09-27  2021-09-25    duration   annual      c-191   \n",
       "1132       -6  2022-09-25  2023-09-30    duration   annual      c-192   \n",
       "1133       -6  2021-09-26  2022-09-24    duration   annual      c-193   \n",
       "1134       -6  2020-09-27  2021-09-25    duration   annual      c-194   \n",
       "1135       -6  2022-09-25  2023-09-30    duration   annual        c-1   \n",
       "1136       -6  2021-09-26  2022-09-24    duration   annual       c-20   \n",
       "1137       -6  2020-09-27  2021-09-25    duration   annual       c-21   \n",
       "\n",
       "       entity_id                                         dimensions  \n",
       "88    0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ProductM...  \n",
       "89    0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ProductM...  \n",
       "90    0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ProductM...  \n",
       "91    0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...  \n",
       "92    0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...  \n",
       "93    0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...  \n",
       "94    0000320193                                                 {}  \n",
       "95    0000320193                                                 {}  \n",
       "96    0000320193                                                 {}  \n",
       "395   0000320193  {'srt:ProductOrServiceAxis': 'aapl:IPhoneMember'}  \n",
       "396   0000320193  {'srt:ProductOrServiceAxis': 'aapl:IPhoneMember'}  \n",
       "397   0000320193  {'srt:ProductOrServiceAxis': 'aapl:IPhoneMember'}  \n",
       "398   0000320193     {'srt:ProductOrServiceAxis': 'aapl:MacMember'}  \n",
       "399   0000320193     {'srt:ProductOrServiceAxis': 'aapl:MacMember'}  \n",
       "400   0000320193     {'srt:ProductOrServiceAxis': 'aapl:MacMember'}  \n",
       "401   0000320193    {'srt:ProductOrServiceAxis': 'aapl:IPadMember'}  \n",
       "402   0000320193    {'srt:ProductOrServiceAxis': 'aapl:IPadMember'}  \n",
       "403   0000320193    {'srt:ProductOrServiceAxis': 'aapl:IPadMember'}  \n",
       "404   0000320193  {'srt:ProductOrServiceAxis': 'aapl:WearablesHo...  \n",
       "405   0000320193  {'srt:ProductOrServiceAxis': 'aapl:WearablesHo...  \n",
       "406   0000320193  {'srt:ProductOrServiceAxis': 'aapl:WearablesHo...  \n",
       "407   0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...  \n",
       "408   0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...  \n",
       "409   0000320193  {'srt:ProductOrServiceAxis': 'us-gaap:ServiceM...  \n",
       "410   0000320193                                                 {}  \n",
       "411   0000320193                                                 {}  \n",
       "412   0000320193                                                 {}  \n",
       "1082  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1083  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1084  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1088  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1089  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1090  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1094  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1095  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1096  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1100  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1101  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1102  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1106  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1107  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1108  0000320193  {'us-gaap:StatementBusinessSegmentsAxis': 'aap...  \n",
       "1126  0000320193    {'srt:StatementGeographicalAxis': 'country:US'}  \n",
       "1127  0000320193    {'srt:StatementGeographicalAxis': 'country:US'}  \n",
       "1128  0000320193    {'srt:StatementGeographicalAxis': 'country:US'}  \n",
       "1129  0000320193    {'srt:StatementGeographicalAxis': 'country:CN'}  \n",
       "1130  0000320193    {'srt:StatementGeographicalAxis': 'country:CN'}  \n",
       "1131  0000320193    {'srt:StatementGeographicalAxis': 'country:CN'}  \n",
       "1132  0000320193  {'srt:StatementGeographicalAxis': 'aapl:OtherC...  \n",
       "1133  0000320193  {'srt:StatementGeographicalAxis': 'aapl:OtherC...  \n",
       "1134  0000320193  {'srt:StatementGeographicalAxis': 'aapl:OtherC...  \n",
       "1135  0000320193                                                 {}  \n",
       "1136  0000320193                                                 {}  \n",
       "1137  0000320193                                                 {}  "
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "(xbrl_data.instance\n",
    ".query_facts(concept=\"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax\")\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "8527f75c-85eb-41bf-88a8-19ec4c6a1f4f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "                                                    \u001B[1;38;5;196mApple Inc.\u001B[0m                                                     \n",
       "                                          \u001B[1mStatement of Financial Position\u001B[0m                                          \n",
       "                                                                                                                   \n",
       " \u001B[1m \u001B[0m\u001B[1m                                                                         \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m         \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m      2023\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m      2022\u001B[0m\u001B[1m \u001B[0m \n",
       " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
       "  \u001B[1;38;5;32mStatement of Financial Position [Abstract]                               \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "  \u001B[1;38;5;32m ASSETS:                                                                 \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "  \u001B[1;38;5;32m  Current assets:                                                        \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Cash and cash equivalents                                                \u001B[2;38;5;249mmillions \u001B[0m       29,965       23,646  \n",
       "     Marketable securities                                                    \u001B[2;38;5;249mmillions \u001B[0m       31,590       24,658  \n",
       "     Accounts receivable, net                                                 \u001B[2;38;5;249mmillions \u001B[0m       29,508       28,184  \n",
       "     Vendor non-trade receivables                                             \u001B[2;38;5;249mmillions \u001B[0m       31,477       32,748  \n",
       "     Inventories                                                              \u001B[2;38;5;249mmillions \u001B[0m        6,331        4,946  \n",
       "     Other current assets                                                     \u001B[2;38;5;249mmillions \u001B[0m       14,695       21,223  \n",
       "  \u001B[1m   Total current assets                                                  \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   143,566\u001B[0m   \u001B[1m   135,405\u001B[0m  \n",
       "                                                                                                                   \n",
       "  \u001B[1;38;5;32m  Non-current assets:                                                    \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Marketable securities                                                    \u001B[2;38;5;249mmillions \u001B[0m      100,544      120,805  \n",
       "     Property, plant and equipment, net                                       \u001B[2;38;5;249mmillions \u001B[0m       43,715       42,117  \n",
       "     Other non-current assets                                                 \u001B[2;38;5;249mmillions \u001B[0m       64,758       54,428  \n",
       "     Total non-current assets                                                 \u001B[2;38;5;249mmillions \u001B[0m      209,017      217,350  \n",
       "  \u001B[1m  Total assets                                                           \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   352,583\u001B[0m   \u001B[1m   352,755\u001B[0m  \n",
       "                                                                                                                   \n",
       "  \u001B[1;38;5;32m LIABILITIES AND SHAREHOLDERS’ EQUITY:                                   \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "  \u001B[1;38;5;32m  Current liabilities:                                                   \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Accounts payable                                                         \u001B[2;38;5;249mmillions \u001B[0m       62,611       64,115  \n",
       "     Other current liabilities                                                \u001B[2;38;5;249mmillions \u001B[0m       58,829       60,845  \n",
       "     Deferred revenue                                                         \u001B[2;38;5;249mmillions \u001B[0m        8,061        7,912  \n",
       "     Commercial paper                                                         \u001B[2;38;5;249mmillions \u001B[0m        5,985        9,982  \n",
       "     Term debt                                                                \u001B[2;38;5;249mmillions \u001B[0m        9,822       11,128  \n",
       "  \u001B[1m   Total current liabilities                                             \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   145,308\u001B[0m   \u001B[1m   153,982\u001B[0m  \n",
       "                                                                                                                   \n",
       "  \u001B[1;38;5;32m  Non-current liabilities:                                               \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Term debt                                                                \u001B[2;38;5;249mmillions \u001B[0m       95,281       98,959  \n",
       "     Other non-current liabilities                                            \u001B[2;38;5;249mmillions \u001B[0m       49,848       49,142  \n",
       "     Total non-current liabilities                                            \u001B[2;38;5;249mmillions \u001B[0m      145,129      148,101  \n",
       "    Total liabilities                                                         \u001B[2;38;5;249mmillions \u001B[0m      290,437      302,083  \n",
       "    Commitments and contingencies                                             \u001B[2;38;5;249m         \u001B[0m                            \n",
       "    Common stock, shares outstanding (in shares)                              \u001B[2;38;5;249mthousands\u001B[0m   15,550,061   15,943,425  \n",
       "    Common stock, shares issued (in shares)                                   \u001B[2;38;5;249mthousands\u001B[0m   15,550,061   15,943,425  \n",
       "  \u001B[1;38;5;32m  Shareholders’ equity:                                                  \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Common stock and additional paid-in capital, $0.00001 par value:         \u001B[2;38;5;249mmillions \u001B[0m       73,812       64,849  \n",
       "  50,400,000 shares authorized; 15,550,061 and 15,943,425 shares issued and                                        \n",
       "  outstanding, respectively                                                                                        \n",
       "     Accumulated deficit                                                      \u001B[2;38;5;249mmillions \u001B[0m         -214       -3,068  \n",
       "     Accumulated other comprehensive loss                                     \u001B[2;38;5;249mmillions \u001B[0m      -11,452      -11,109  \n",
       "     Total shareholders’ equity                                               \u001B[2;38;5;249mmillions \u001B[0m       62,146       50,672  \n",
       "  \u001B[1m  Total liabilities and shareholders’ equity                             \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   352,583\u001B[0m   \u001B[1m   352,755\u001B[0m  \n",
       "                                                                                                                   "
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statements = xbrl_data.statements\n",
    "statements['CONSOLIDATEDBALANCESHEETS']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "ac3959b1-28a3-4ab0-86bb-ae86d3f2f123",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "                                                    \u001B[1;38;5;196mApple Inc.\u001B[0m                                                     \n",
       "                                          \u001B[1mStatement of Financial Position\u001B[0m                                          \n",
       "                                                                                                                   \n",
       " \u001B[1m \u001B[0m\u001B[1m                                                                         \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m         \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m      2023\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m      2022\u001B[0m\u001B[1m \u001B[0m \n",
       " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
       "  \u001B[1;38;5;32mStatement of Financial Position [Abstract]                               \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "  \u001B[1;38;5;32m ASSETS:                                                                 \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "  \u001B[1;38;5;32m  Current assets:                                                        \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Cash and cash equivalents                                                \u001B[2;38;5;249mmillions \u001B[0m       29,965       23,646  \n",
       "     Marketable securities                                                    \u001B[2;38;5;249mmillions \u001B[0m       31,590       24,658  \n",
       "     Accounts receivable, net                                                 \u001B[2;38;5;249mmillions \u001B[0m       29,508       28,184  \n",
       "     Vendor non-trade receivables                                             \u001B[2;38;5;249mmillions \u001B[0m       31,477       32,748  \n",
       "     Inventories                                                              \u001B[2;38;5;249mmillions \u001B[0m        6,331        4,946  \n",
       "     Other current assets                                                     \u001B[2;38;5;249mmillions \u001B[0m       14,695       21,223  \n",
       "  \u001B[1m   Total current assets                                                  \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   143,566\u001B[0m   \u001B[1m   135,405\u001B[0m  \n",
       "                                                                                                                   \n",
       "  \u001B[1;38;5;32m  Non-current assets:                                                    \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Marketable securities                                                    \u001B[2;38;5;249mmillions \u001B[0m      100,544      120,805  \n",
       "     Property, plant and equipment, net                                       \u001B[2;38;5;249mmillions \u001B[0m       43,715       42,117  \n",
       "     Other non-current assets                                                 \u001B[2;38;5;249mmillions \u001B[0m       64,758       54,428  \n",
       "     Total non-current assets                                                 \u001B[2;38;5;249mmillions \u001B[0m      209,017      217,350  \n",
       "  \u001B[1m  Total assets                                                           \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   352,583\u001B[0m   \u001B[1m   352,755\u001B[0m  \n",
       "                                                                                                                   \n",
       "  \u001B[1;38;5;32m LIABILITIES AND SHAREHOLDERS’ EQUITY:                                   \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "  \u001B[1;38;5;32m  Current liabilities:                                                   \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Accounts payable                                                         \u001B[2;38;5;249mmillions \u001B[0m       62,611       64,115  \n",
       "     Other current liabilities                                                \u001B[2;38;5;249mmillions \u001B[0m       58,829       60,845  \n",
       "     Deferred revenue                                                         \u001B[2;38;5;249mmillions \u001B[0m        8,061        7,912  \n",
       "     Commercial paper                                                         \u001B[2;38;5;249mmillions \u001B[0m        5,985        9,982  \n",
       "     Term debt                                                                \u001B[2;38;5;249mmillions \u001B[0m        9,822       11,128  \n",
       "  \u001B[1m   Total current liabilities                                             \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   145,308\u001B[0m   \u001B[1m   153,982\u001B[0m  \n",
       "                                                                                                                   \n",
       "  \u001B[1;38;5;32m  Non-current liabilities:                                               \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Term debt                                                                \u001B[2;38;5;249mmillions \u001B[0m       95,281       98,959  \n",
       "     Other non-current liabilities                                            \u001B[2;38;5;249mmillions \u001B[0m       49,848       49,142  \n",
       "     Total non-current liabilities                                            \u001B[2;38;5;249mmillions \u001B[0m      145,129      148,101  \n",
       "    Total liabilities                                                         \u001B[2;38;5;249mmillions \u001B[0m      290,437      302,083  \n",
       "    Commitments and contingencies                                             \u001B[2;38;5;249m         \u001B[0m                            \n",
       "    Common stock, shares outstanding (in shares)                              \u001B[2;38;5;249mthousands\u001B[0m   15,550,061   15,943,425  \n",
       "    Common stock, shares issued (in shares)                                   \u001B[2;38;5;249mthousands\u001B[0m   15,550,061   15,943,425  \n",
       "  \u001B[1;38;5;32m  Shareholders’ equity:                                                  \u001B[0m   \u001B[2;38;5;249m         \u001B[0m                            \n",
       "     Common stock and additional paid-in capital, $0.00001 par value:         \u001B[2;38;5;249mmillions \u001B[0m       73,812       64,849  \n",
       "  50,400,000 shares authorized; 15,550,061 and 15,943,425 shares issued and                                        \n",
       "  outstanding, respectively                                                                                        \n",
       "     Accumulated deficit                                                      \u001B[2;38;5;249mmillions \u001B[0m         -214       -3,068  \n",
       "     Accumulated other comprehensive loss                                     \u001B[2;38;5;249mmillions \u001B[0m      -11,452      -11,109  \n",
       "     Total shareholders’ equity                                               \u001B[2;38;5;249mmillions \u001B[0m       62,146       50,672  \n",
       "  \u001B[1m  Total liabilities and shareholders’ equity                             \u001B[0m   \u001B[2;38;5;249mmillions \u001B[0m   \u001B[1m   352,583\u001B[0m   \u001B[1m   352,755\u001B[0m  \n",
       "                                                                                                                   "
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "xbrl_data.get_statement('CONSOLIDATEDBALANCESHEETS')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6f4c59ee-eb61-4948-b2a7-702cbac562f2",
   "metadata": {},
   "source": [
    "## View the structure of the XBRL"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "aa7c715e-22c0-44ca-9e68-a46bd17a354e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "\u001B[1;32mXBRL Presentation Structure\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CoverPage\u001B[0m\n",
       "│   └── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mCoverAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntitiesTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementClassOfStockAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mClassOfStockDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA1.375NotesDue2024Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA0.000Notesdue2025Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA0.875NotesDue2025Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA1.625NotesDue2026Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA2.000NotesDue2027Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA1.375NotesDue2029Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA3.050NotesDue2029Member\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA0.500Notesdue2031Member\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA3.600NotesDue2042Member\u001B[0m\n",
       "│           └── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityInformationLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentType\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentAnnualReport\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mCurrentFiscalYearEndDate\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentPeriodEndDate\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentTransitionReport\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityFileNumber\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityRegistrantName\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityIncorporationStateCountryCode\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityTaxIdentificationNumber\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityAddressAddressLine1\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityAddressCityOrTown\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityAddressStateOrProvince\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityAddressPostalZipCode\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mCityAreaCode\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mLocalPhoneNumber\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mSecurity12bTitle\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mTradingSymbol\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mNoTradingSymbolFlag\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mSecurityExchangeName\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityWellKnownSeasonedIssuer\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityVoluntaryFilers\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityCurrentReportingStatus\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityInteractiveDataCurrent\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityFilerCategory\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntitySmallBusiness\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityEmergingGrowthCompany\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mIcfrAuditorAttestationFlag\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentFinStmtErrorCorrectionFlag\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityShellCompany\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityPublicFloat\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityCommonStockSharesOutstanding\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentsIncorporatedByReferenceTextBlock\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mAmendmentFlag\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentFiscalYearFocus\u001B[0m\n",
       "│               ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mDocumentFiscalPeriodFocus\u001B[0m\n",
       "│               └── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mEntityCentralIndexKey\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/AuditorInformation\u001B[0m\n",
       "│   └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mAuditorInformationAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mAuditorName\u001B[0m\n",
       "│       ├── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mAuditorLocation\u001B[0m\n",
       "│       └── \u001B[1;33mdei\u001B[0m \u001B[1;38;5;39mAuditorFirmId\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeStatementAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementTable\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mProductOrServiceAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mProductsAndServicesDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProductMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mServiceMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerExcludingAssessedTax\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCostOfGoodsAndServicesSold\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mGrossProfit\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingExpensesAbstract\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mResearchAndDevelopmentExpense\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSellingGeneralAndAdministrativeExpense\u001B[0m\n",
       "│               │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingExpenses\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingIncomeLoss\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNonoperatingIncomeExpense\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   \u001B[1;38;5;39mIncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxExpenseBenefit\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLoss\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareAbstract\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareBasic\u001B[0m\n",
       "│               │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareDiluted\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mWeightedAverageNumberOfSharesOutstandingAbstract\u001B[0m\n",
       "│                   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mWeightedAverageNumberOfSharesOutstandingBasic\u001B[0m\n",
       "│                   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mWeightedAverageNumberOfDilutedSharesOutstanding\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementOfIncomeAndComprehensiveIncomeAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLoss\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mComprehensiveIncomeNetOfTaxAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeDerivativesQualifyingAsHedgesNetOfTaxPeriodIncreaseDecreaseAbstract\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossDerivativeInstrumentGainLossbeforeReclassificationafterTax\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossDerivativeInstrumentGainLossReclassificationAfterTax\u001B[0m\n",
       "│       │   │   └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossDerivativeInstrumentGainLossafterReclassificationandTax\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│       │   │   \u001B[1;38;5;39mOtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│       │   │   │   \u001B[1;38;5;39mOtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│       │   │   │   \u001B[1;38;5;39mOtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mComprehensiveIncomeNetOfTax\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CONSOLIDATEDBALANCESHEETS\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementOfFinancialPositionAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetsAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetsCurrentAbstract\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCashAndCashEquivalentsAtCarryingValue\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesCurrent\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccountsReceivableNetCurrent\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNontradeReceivablesCurrent\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInventoryNet\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAssetsCurrent\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetsCurrent\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetsNoncurrentAbstract\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesNoncurrent\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentNet\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAssetsNoncurrent\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetsNoncurrent\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssets\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilitiesAndStockholdersEquityAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilitiesCurrentAbstract\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccountsPayableCurrent\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherLiabilitiesCurrent\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mContractWithCustomerLiabilityCurrent\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommercialPaper\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtCurrent\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilitiesCurrent\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilitiesNoncurrentAbstract\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtNoncurrent\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherLiabilitiesNoncurrent\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilitiesNoncurrent\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilities\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommitmentsAndContingencies\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockSharesOutstanding\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockSharesIssued\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockholdersEquityAbstract\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStocksIncludingAdditionalPaidInCapital\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRetainedEarningsAccumulatedDeficit\u001B[0m\n",
       "│           │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccumulatedOtherComprehensiveIncomeLossNetOfTax\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockholdersEquity\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLiabilitiesAndStockholdersEquity\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CONSOLIDATEDBALANCESHEETSParenthetical\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementOfFinancialPositionAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockParOrStatedValuePerShare\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockSharesAuthorized\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockSharesIssued\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockSharesOutstanding\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementOfStockholdersEquityAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementEquityComponentsAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquityComponentDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockIncludingAdditionalPaidInCapitalMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRetainedEarningsMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccumulatedOtherComprehensiveIncomeMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInStockholdersEquityRollForward\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockholdersEquity\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockIssuedDuringPeriodValueNewIssues\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAdjustmentsRelatedToTaxWithholdingForShareBasedCompensation\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mAdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognition\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39mValue\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLoss\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDividends\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockRepurchasedAndRetiredDuringPeriodValue\u001B[0m\n",
       "│               │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockDividendsPerShareDeclared\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementOfCashFlowsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetCashProvidedByUsedInOperatingActivitiesContinuingOperationsAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLoss\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDepreciationDepletionAndAmortization\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensation\u001B[0m\n",
       "│       │   │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherNoncashIncomeExpense\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInOperatingCapitalAbstract\u001B[0m\n",
       "│       │   │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInAccountsReceivable\u001B[0m\n",
       "│       │   │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInOtherReceivables\u001B[0m\n",
       "│       │   │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInInventories\u001B[0m\n",
       "│       │   │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInOtherOperatingAssets\u001B[0m\n",
       "│       │   │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInAccountsPayable\u001B[0m\n",
       "│       │   │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInOtherOperatingLiabilities\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetCashProvidedByUsedInOperatingActivities\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetCashProvidedByUsedInInvestingActivitiesContinuingOperationsAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsToAcquireAvailableForSaleSecuritiesDebt\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromSaleOfAvailableForSaleSecuritiesDebt\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsToAcquirePropertyPlantAndEquipment\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsForProceedsFromOtherInvestingActivities\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetCashProvidedByUsedInInvestingActivities\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetCashProvidedByUsedInFinancingActivitiesContinuingOperationsAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsRelatedToTaxWithholdingForShareBasedCompensation\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsOfDividends\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsForRepurchaseOfCommonStock\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromIssuanceOfLongTermDebt\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRepaymentsOfLongTermDebt\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromRepaymentsOfCommercialPaper\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromPaymentsForOtherFinancingActivities\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetCashProvidedByUsedInFinancingActivities\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│       │   \u001B[1;38;5;39mCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRat\u001B[0m\n",
       "│       │   \u001B[1;38;5;39meEffect\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSupplementalCashFlowInformationAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxesPaidNet\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInterestPaidNet\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SummaryofSignificantAccountingPolicies\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccountingPoliciesAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mBasisOfPresentationAndSignificantAccountingPoliciesTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/Revenue\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/EarningsPerShare\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstruments\u001B[0m\n",
       "│   └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mFinancialInstrumentsAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinancialInstrumentsDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/PropertyPlantandEquipment\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ConsolidatedFinancialStatementDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOrganizationConsolidationAndPresentationOfFinancialStatementsAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAdditionalFinancialInformationDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxes\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/Leases\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLeasesAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeasesTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeFinanceLeasesTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/Debt\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareholdersEquity\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquityAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockholdersEquityNoteDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareBasedCompensation\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CommitmentsContingenciesandSupplyConcentrations\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommitmentsAndContingenciesDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommitmentsAndContingenciesDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SegmentInformationandGeographicData\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SummaryofSignificantAccountingPoliciesPolicies\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccountingPoliciesAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mBasisOfAccountingPolicyPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFiscalPeriod\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueRecognitionPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCompensationRelatedCostsPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCashAndCashEquivalentsPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesPolicy\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInventoryPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativesPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeLeasesPolicyTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueMeasurementPolicyPolicyTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingPolicyPolicyTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/RevenueTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisaggregationOfRevenueTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/EarningsPerShareTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsTables\u001B[0m\n",
       "│   └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mFinancialInstrumentsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInvestmentsClassifiedByContractualMaturityDateTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│           \u001B[1;38;5;39mScheduleOfFairValueHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableT\u001B[0m\n",
       "│           \u001B[1;38;5;39mextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/PropertyPlantandEquipmentTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ConsolidatedFinancialStatementDetailsTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOrganizationConsolidationAndPresentationOfFinancialStatementsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfOtherAssetsNoncurrentTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherCurrentLiabilitiesTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherNoncurrentLiabilitiesTableTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInterestAndOtherIncomeTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxesTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfUnrecognizedTaxBenefitsRollForwardTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/LeasesTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLeasesAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOperatingandFinanceLeaseRightofUseAssetsandLeaseLiabilitiesTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityMaturityTableTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityMaturityTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/DebtTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCommercialPaperCashFlowSummaryTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfDebtInstrumentsTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfMaturitiesOfLongTermDebtTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareholdersEquityTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquityAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfCommonStockOutstandingRollForwardTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareBasedCompensationTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CommitmentsContingenciesandSupplyConcentrationsTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommitmentsAndContingenciesDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationsDisclosureTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SegmentInformationandGeographicDataTables\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfSegmentReportingInformationBySegmentTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mReconciliationOfOperatingProfitLossFromSegmentsToConsolidatedTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsByGeographicalAreasTableTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/RevenueAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mPerformanceObligationsinArrangements\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mContractWithCustomerLiabilityRevenueRecognized\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mContractWithCustomerLiability\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/RevenueNetSalesDisaggregatedbySignificantProductsandServicesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisaggregationOfRevenueTable\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mProductOrServiceAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mProductsAndServicesDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mIPhoneMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mMacMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mIPadMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mWearablesHomeandAccessoriesMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mServiceMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisaggregationOfRevenueLineItems\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerExcludingAssessedTax\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/RevenueDeferredRevenueExpectedTimingofRealizationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueRemainingPerformanceObligationPercentage\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/EarningsPerShareComputationofBasicandDilutedEarningsPerShareDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLossAbstract\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLoss\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mWeightedAverageNumberOfSharesOutstandingAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mWeightedAverageNumberOfSharesOutstandingBasic\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncrementalCommonSharesAttributableToShareBasedPaymentArrangements\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mWeightedAverageNumberOfDilutedSharesOutstanding\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareBasic\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareDiluted\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/EarningsPerShareAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEarningsPerShareAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAntidilutiveSecuritiesNameDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRestrictedStockUnitsRSUMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsCashCashEquivalentsandMarketableSecuritiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInvestmentsDebtAndEquitySecuritiesAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinancialInstrumentAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mTransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCashMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMoneyMarketFundsMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquitySecuritiesMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMutualFundMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUSTreasurySecuritiesMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUSGovernmentAgenciesDebtSecuritiesMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mForeignGovernmentDebtSecuritiesMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mBankTimeDepositsMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommercialPaperMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCorporateDebtSecuritiesMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUSStatesAndPoliticalSubdivisionsMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetBackedSecuritiesMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueByFairValueHierarchyLevelAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueMeasurementsFairValueHierarchyDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueInputsLevel1Member\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueInputsLevel2Member\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCash\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquitySecuritiesFvNiCost\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mEquitySecuritiesFVNIAccumulatedGrossUnrealizedGainBeforeTax\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mEquitySecuritiesFVNIAccumulatedGrossUnrealizedLossBeforeTax\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquitySecuritiesFvNiCurrentAndNoncurrent\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleDebtSecuritiesAmortizedCostBasis\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleSecuritiesDebtSecurities\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCashCashEquivalentsAndMarketableSecuritiesCost\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedGainBeforeTax\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCashEquivalentsAndMarketableSecuritiesAccumulatedGrossUnrealizedLossBeforeTax\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCashCashEquivalentsAndMarketableSecurities\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCashAndCashEquivalentsAtCarryingValue\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesCurrent\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMarketableSecuritiesNoncurrent\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtSecuritiesAvailableForSaleRestricted\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsNonCurrentMarketableDebtSecuritiesbyContractualMaturityDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInvestmentsDebtAndEquitySecuritiesAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDateRollingMaturityAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleSecuritiesDebtMaturitiesRollingYearTwoThroughFiveFairValue\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleSecuritiesDebtMaturitiesRollingYearSixThroughTenFairValue\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleSecuritiesDebtMaturitiesRollingAfterYearTenFairValue\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAvailableForSaleSecuritiesDebtMaturitiesSingleMaturityDate\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mFinancialInstrumentsAbstract\u001B[0m\n",
       "│       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mFinancialInstrumentsTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentRiskAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeContractTypeDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mForeignExchangeContractMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCrossCurrencyInterestRateContractMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mConcentrationRiskByBenchmarkAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mConcentrationRiskBenchmarkDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mTradeAccountsReceivableMember\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mNonTradeReceivableMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mConcentrationRiskByTypeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mConcentrationRiskTypeDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCreditConcentrationRiskMember\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mMajorCustomersAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mNameOfMajorCustomerDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCustomerOneMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mCellularNetworkCarriersMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mVendorOneMember\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mVendorTwoMember\u001B[0m\n",
       "│           └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mFinancialInstrumentsLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMaximumLengthOfTimeForeignCurrencyCashFlowHedge\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueConcentrationOfRiskDerivativeFinancialInstrumentsAssets\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDerivativeAssetsReductionForMasterNettingArrangementsIncludingTheEffectsOfCollateral\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDerivativeLiabilitiesReductionForMasterNettingArrangementsIncludingTheEffectsOfCollateral\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeFairValueOfDerivativeNet\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mNumberOfCustomersWithSignificantAccountsReceivableBalance\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mConcentrationRiskPercentage1\u001B[0m\n",
       "│               └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mNumberOfSignificantVendors\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsNotionalAmountsAssociatedwithDerivativeInstrumentsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgingDesignationAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgingDesignationDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDesignatedAsHedgingInstrumentMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNondesignatedMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentRiskAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeContractTypeDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mForeignExchangeContractMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInterestRateContractMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativesFairValueLineItems\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeNotionalAmount\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsGrossFairValuesofDerivativeAssetsandLiabilitiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mBalanceSheetLocationAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mBalanceSheetLocationDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAssetsMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherLiabilitiesMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentRiskAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeContractTypeDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mForeignExchangeContractMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInterestRateContractMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueByFairValueHierarchyLevelAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueMeasurementsFairValueHierarchyDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueInputsLevel2Member\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgingDesignationAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgingDesignationDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDesignatedAsHedgingInstrumentMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNondesignatedMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentsAndHedgingActivitiesDisclosuresLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeAssetsAbstract\u001B[0m\n",
       "│               │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeLiabilitiesAbstract\u001B[0m\n",
       "│                   └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│                       \u001B[1;38;5;39mDerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/FinancialInstrumentsDerivativeInstrumentsDesignatedasFairValueHedgesandRelatedHedgedI\u001B[0m\n",
       "│   \u001B[1;34mtemsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgedAssetFairValueHedge\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgedAssetStatementOfFinancialPositionExtensibleEnumeration\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgedLiabilityFairValueHedge\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mHedgedLiabilityStatementOfFinancialPositionExtensibleEnumeration\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/PropertyPlantandEquipmentGrossPropertyPlantandEquipmentbyMajorAssetClassandAccumulate\u001B[0m\n",
       "│   \u001B[1;34mdDepreciationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfPropertyPlantAndEquipmentTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentByTypeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentTypeDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLandAndBuildingMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mMachineryEquipmentandInternalUseSoftwareMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLeaseholdImprovementsMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentGross\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentNet\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/PropertyPlantandEquipmentAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPropertyPlantAndEquipmentAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDepreciation\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ConsolidatedFinancialStatementDetailsOtherNonCurrentAssetsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOrganizationConsolidationAndPresentationOfFinancialStatementsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredIncomeTaxAssetsNet\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAssetsMiscellaneousNoncurrent\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAssetsNoncurrent\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ConsolidatedFinancialStatementDetailsOtherCurrentLiabilitiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOrganizationConsolidationAndPresentationOfFinancialStatementsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccruedIncomeTaxesCurrent\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAccruedLiabilitiesCurrent\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherLiabilitiesCurrent\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ConsolidatedFinancialStatementDetailsOtherNonCurrentLiabilitiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOrganizationConsolidationAndPresentationOfFinancialStatementsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAccruedIncomeTaxesNoncurrent\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherAccruedLiabilitiesNoncurrent\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherLiabilitiesNoncurrent\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ConsolidatedFinancialStatementDetailsOtherIncomeExpenseNetDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOrganizationConsolidationAndPresentationOfFinancialStatementsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInvestmentIncomeInterestAndDividend\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInterestExpense\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherNonoperatingIncomeExpense\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNonoperatingIncomeExpense\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxesProvisionforIncomeTaxesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFederalIncomeTaxExpenseBenefitContinuingOperationsAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCurrentFederalTaxExpenseBenefit\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredFederalIncomeTaxExpenseBenefit\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFederalIncomeTaxExpenseBenefitContinuingOperations\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStateAndLocalIncomeTaxExpenseBenefitContinuingOperationsAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCurrentStateAndLocalTaxExpenseBenefit\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredStateAndLocalIncomeTaxExpenseBenefit\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStateAndLocalIncomeTaxExpenseBenefitContinuingOperations\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mForeignIncomeTaxExpenseBenefitContinuingOperationsAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCurrentForeignTaxExpenseBenefit\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredForeignIncomeTaxExpenseBenefit\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mForeignIncomeTaxExpenseBenefitContinuingOperations\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxExpenseBenefit\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxesAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxContingencyTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLossContingenciesByNatureOfContingencyAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLossContingencyNatureDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mUnfavorableInvestigationOutcomeEUStateAidRulesMember\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mUnfavorableInvestigationOutcomeEUStateAidRulesInterestComponentMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxContingencyLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsTaxCreditCarryforwardsForeign\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsTaxCreditCarryforwardsResearch\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefits\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefitsThatWouldImpactEffectiveTaxRate\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDecreaseInUnrecognizedTaxBenefitsIsReasonablyPossible\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mIncomeTaxContingencyNumberOfSubsidiaries\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLossContingencyEstimateOfPossibleLoss\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxesReconciliationofProvisionforIncomeTaxestoAmountComputedbyApplyingtheStatut\u001B[0m\n",
       "│   \u001B[1;34moryFederalIncomeTaxRatetoIncomeBeforeProvisionforIncomeTaxesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxReconciliationStateAndLocalIncomeTaxes\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxReconciliationForeignIncomeTaxRateDifferential\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxReconciliationTaxCreditsResearch\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEffectiveIncomeTaxRateReconciliationShareBasedCompensationExcessTaxBenefitAmount\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEffectiveIncomeTaxRateReconciliationFdiiAmount\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxReconciliationOtherAdjustments\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxExpenseBenefit\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEffectiveIncomeTaxRateContinuingOperations\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxesSignificantComponentsofDeferredTaxAssetsandLiabilitiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsGrossAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsTaxCreditCarryforwards\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsTaxDeferredExpenseReservesAndAccruals\u001B[0m\n",
       "│       │   ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsCapitalizedResearchAndDevelopment\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsDeferredIncome\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsOtherComprehensiveLoss\u001B[0m\n",
       "│       │   ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsLeaseLiabilities\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsOther\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsGross\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsValuationAllowance\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsNet\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxLiabilitiesAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxLiabilitiesLeasingArrangements\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxLiabilitiesPropertyPlantAndEquipment\u001B[0m\n",
       "│       │   ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDeferredTaxLiabilitiesMinimumTaxonForeignEarnings\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxLiabilitiesOtherComprehensiveIncome\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxLiabilitiesOther\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredIncomeTaxLiabilities\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDeferredTaxAssetsLiabilitiesNet\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/IncomeTaxesAggregateChangesinGrossUnrecognizedTaxBenefitsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncomeTaxDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│           \u001B[1;38;5;39mReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefits\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefitsDecreasesResultingFromSettlementsWithTaxingAuthorities\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/LeasesAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLeasesAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeLeaseDescriptionTable\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mRangeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mRangeMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mMinimumMember\u001B[0m\n",
       "│           │       └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mMaximumMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeLeaseDescriptionLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingandFinanceLeaseTermofContract\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseCost\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mVariableLeaseCost\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeasePayments\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mRightofUseAssetsObtainedinExchangeforOperatingandFinanceLeaseLiabilities\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOperatingandFinanceLeaseWeightedAverageRemainingLeaseTerm\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOperatingandFinanceLeaseWeightedAverageDiscountRatePercent\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLeaseNotYetCommencedPaymentsDue\u001B[0m\n",
       "│               └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLeaseNotYetCommencedTermOfContract\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/LeasesROUAssetsandLeaseLiabilitiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLeasesAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAssetsAndLiabilitiesLesseeAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseRightOfUseAsset\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseRightOfUseAsset\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOperatingandFinanceLeaseRightofUseAsset\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseLiabilityCurrent\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseLiabilityNoncurrent\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityCurrent\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityNoncurrent\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList\u001B[0m\n",
       "│           └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOperatingandFinanceLeaseLiability\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/LeasesLeaseLiabilityMaturitiesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLeasesAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseLiabilitiesPaymentsDueAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDueYearTwo\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDueYearThree\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDueYearFour\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDueYearFive\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityPaymentsDue\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLesseeOperatingLeaseLiabilityUndiscountedExcessAmount\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingLeaseLiability\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilitiesPaymentsDueAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDueNextTwelveMonths\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDueYearTwo\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDueYearThree\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDueYearFour\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDueYearFive\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDueAfterYearFive\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityPaymentsDue\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiabilityUndiscountedExcessAmount\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFinanceLeaseLiability\u001B[0m\n",
       "│       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingandFinanceLeaseLiabilityPaymentDueAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaidYearOne\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaidYearTwo\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaidYearThree\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFour\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaidYearFive\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaidAfterYearFive\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingAndFinanceLeaseLiabilityToBePaid\u001B[0m\n",
       "│           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mLesseeOperatingandFinanceLeaseLiabilityUndiscountedExcessAmount\u001B[0m\n",
       "│           └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOperatingandFinanceLeaseLiability\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/DebtAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShortTermDebtTypeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShortTermDebtTypeDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommercialPaperMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueByFairValueHierarchyLevelAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueMeasurementsFairValueHierarchyDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mFairValueInputsLevel2Member\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommercialPaper\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentTerm\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShortTermDebtWeightedAverageInterestRate\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mInterestCostsIncurred\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtFairValue\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/DebtSummaryofCashFlowsAssociatedwithCommercialPaperDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLessAlternativeAbstract\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromRepaymentsOfShortTermDebtMaturingInThreeMonthsOrLess\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromRepaymentsOfShortTermDebtMaturingInMoreThanThreeMonthsAlternativeAbstract\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromShortTermDebtMaturingInMoreThanThreeMonths\u001B[0m\n",
       "│       │   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRepaymentsOfShortTermDebtMaturingInMoreThanThreeMonths\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromRepaymentsOfShortTermDebtMaturingInMoreThanThreeMonths\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mProceedsFromRepaymentsOfCommercialPaper\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/DebtSummaryofTermDebtDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentNameDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mA20132022DebtIssuancesMember\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mThirdQuarter2023DebtIssuanceMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongtermDebtTypeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongtermDebtTypeDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mFixedRateNotesMember\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mRangeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mRangeMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mMinimumMember\u001B[0m\n",
       "│           │       └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mMaximumMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentCarryingAmount\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mHedgeAccountingAdjustmentsRelatedToLongTermDebt\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebt\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtCurrent\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtNoncurrent\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDebtInstrumentMaturityYearRangeStart\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDebtInstrumentMaturityYearRangeEnd\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentInterestRateStatedPercentage\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentInterestRateEffectivePercentage\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/DebtFuturePrincipalPaymentsforTermDebtDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtDisclosureAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mLongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDebtInstrumentCarryingAmount\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareholdersEquityAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquityAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockholdersEquityNoteAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockRepurchasedAndRetiredDuringPeriodShares\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockRepurchasedAndRetiredDuringPeriodValue\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareholdersEquitySharesofCommonStockDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementOfStockholdersEquityAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementEquityComponentsAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEquityComponentDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementLineItems\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mIncreaseDecreaseInStockholdersEquityRollForward\u001B[0m\n",
       "│                   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommonStockSharesOutstanding\u001B[0m\n",
       "│                   ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockRepurchasedAndRetiredDuringPeriodShares\u001B[0m\n",
       "│                   └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mStockIssuedDuringPeriodSharesSharebasedPaymentArrangementNetofSharesWithheldforTaxes\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareBasedCompensationAdditionalInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPlanNameAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPlanNameDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mEmployeeStockPlan2022PlanMember\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAwardTypeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRestrictedStockUnitsRSUMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1\u001B[0m\n",
       "│               ├── \u001B[1;33maapl\u001B[0m \n",
       "│               │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNumbe\u001B[0m\n",
       "│               │   \u001B[1;38;5;39mrOfSharesOfCommonStockIssuedPerUnitUponVesting\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVeste\u001B[0m\n",
       "│               │   \u001B[1;38;5;39mdInPeriodTotalFairValue\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSharesPaidForTaxWithholdingForShareBasedCompensation\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mPaymentsRelatedToTaxWithholdingForShareBasedCompensation\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   \u001B[1;38;5;39mEmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│                   \u001B[1;38;5;39mEmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriod\u001B[0m\n",
       "│                   \u001B[1;38;5;39mForRecognition1\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareBasedCompensationRestrictedStockUnitActivityandRelatedInformationDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAwardTypeAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRestrictedStockUnitsRSUMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonve\u001B[0m\n",
       "│               │   \u001B[1;38;5;39mstedRollForward\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsN\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39monvestedNumber\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsG\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39mrantsInPeriod\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsV\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39mestedInPeriod\u001B[0m\n",
       "│               │   └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │       \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsF\u001B[0m\n",
       "│               │       \u001B[1;38;5;39morfeitedInPeriod\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonve\u001B[0m\n",
       "│               │   \u001B[1;38;5;39mstedWeightedAverageGrantDateFairValueRollForward\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsN\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39monvestedWeightedAverageGrantDateFairValue\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsG\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39mrantsInPeriodWeightedAverageGrantDateFairValue\u001B[0m\n",
       "│               │   ├── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │   │   \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsV\u001B[0m\n",
       "│               │   │   \u001B[1;38;5;39mestedInPeriodWeightedAverageGrantDateFairValue\u001B[0m\n",
       "│               │   └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│               │       \u001B[1;38;5;39mShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsF\u001B[0m\n",
       "│               │       \u001B[1;38;5;39morfeituresWeightedAverageGrantDateFairValue\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│                   \u001B[1;38;5;39mSharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsAggre\u001B[0m\n",
       "│                   \u001B[1;38;5;39mgateIntrinsicValueAbstract\u001B[0m\n",
       "│                   └── \u001B[1;33mus-gaap\u001B[0m \n",
       "│                       \u001B[1;38;5;39mSharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherThanOptionsA\u001B[0m\n",
       "│                       \u001B[1;38;5;39mggregateIntrinsicValueNonvested\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/ShareBasedCompensationSummaryofShareBasedCompensationExpenseandtheRelatedIncomeTaxBen\u001B[0m\n",
       "│   \u001B[1;34mefitDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mDisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAllocatedShareBasedCompensationExpense\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/CommitmentsContingenciesandSupplyConcentrationsFuturePaymentsUnderUnconditionalPurcha\u001B[0m\n",
       "│   \u001B[1;34mseObligationsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCommitmentsAndContingenciesDisclosureAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationAbstract\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationBalanceOnFirstAnniversary\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationBalanceOnSecondAnniversary\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationBalanceOnThirdAnniversary\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationBalanceOnFourthAnniversary\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationBalanceOnFifthAnniversary\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationDueAfterFiveYears\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mUnrecordedUnconditionalPurchaseObligationBalanceSheetAmount\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SegmentInformationandGeographicDataInformationbyReportableSegmentDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfSegmentReportingInformationBySegmentTable\u001B[0m\n",
       "│           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStatementBusinessSegmentsAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mAmericasSegmentMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mEuropeSegmentMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mGreaterChinaSegmentMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mJapanSegmentMember\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mRestOfAsiaPacificSegmentMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingInformationLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerExcludingAssessedTax\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingIncomeLoss\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SegmentInformationandGeographicDataReconciliationofSegmentOperatingIncometotheConsoli\u001B[0m\n",
       "│   \u001B[1;34mdatedStatementsofOperationsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mReconciliationOfOperatingProfitLossFromSegmentsToConsolidatedTable\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mConsolidationItemsAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mConsolidationItemsDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingSegmentsMember\u001B[0m\n",
       "│           │       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mMaterialReconcilingItemsMember\u001B[0m\n",
       "│           │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mCorporateNonSegmentMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingReconcilingItemForOperatingProfitLossFromSegmentToConsolidatedLineItems\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOperatingIncomeLoss\u001B[0m\n",
       "│               ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mResearchAndDevelopmentExpense\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mOtherGeneralAndAdministrativeExpense\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SegmentInformationandGeographicDataNetSalesDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mStatementGeographicalAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mSegmentGeographicalDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mcountry\u001B[0m \u001B[1;38;5;39mUS\u001B[0m\n",
       "│           │       ├── \u001B[1;33mcountry\u001B[0m \u001B[1;38;5;39mCN\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOtherCountriesMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenuesFromExternalCustomersAndLongLivedAssetsLineItems\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenueFromContractWithCustomerExcludingAssessedTax\u001B[0m\n",
       "├── \u001B[1;34mhttp://www.apple.com/role/SegmentInformationandGeographicDataLongLivedAssetsDetails\u001B[0m\n",
       "│   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mSegmentReportingAbstract\u001B[0m\n",
       "│       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable\u001B[0m\n",
       "│           ├── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mStatementGeographicalAxis\u001B[0m\n",
       "│           │   └── \u001B[1;33msrt\u001B[0m \u001B[1;38;5;39mSegmentGeographicalDomain\u001B[0m\n",
       "│           │       ├── \u001B[1;33mcountry\u001B[0m \u001B[1;38;5;39mUS\u001B[0m\n",
       "│           │       ├── \u001B[1;33mcountry\u001B[0m \u001B[1;38;5;39mCN\u001B[0m\n",
       "│           │       └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mOtherCountriesMember\u001B[0m\n",
       "│           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRevenuesFromExternalCustomersAndLongLivedAssetsLineItems\u001B[0m\n",
       "│               └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNoncurrentAssets\u001B[0m\n",
       "├── \u001B[1;34mhttp://xbrl.sec.gov/ecd/role/AwardTimingDisclosure\u001B[0m\n",
       "│   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardTmgDiscLineItems\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardTmgMnpiDiscTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardTmgMethodTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardTmgPredtrmndFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardTmgMnpiCnsdrdFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardTmgHowMnpiCnsdrdTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mMnpiDiscTimedForCompValFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardsCloseToMnpiDiscTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardsCloseToMnpiDiscTable\u001B[0m\n",
       "│       │   ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mIndividualAxis\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllIndividualsMember\u001B[0m\n",
       "│       │   └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mAwardTypeAxis\u001B[0m\n",
       "│       │       └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain\u001B[0m\n",
       "│       │           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mEmployeeStockOptionMember\u001B[0m\n",
       "│       │           ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mStockAppreciationRightsSARSMember\u001B[0m\n",
       "│       │           └── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mRestrictedStockUnitsRSUMember\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardsCloseToMnpiDiscIndName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardUndrlygSecuritiesAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardExrcPrice\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAwardGrantDateFairValue\u001B[0m\n",
       "│       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mUndrlygSecurityMktPriceChngPct\u001B[0m\n",
       "├── \u001B[1;34mhttp://xbrl.sec.gov/ecd/role/InsiderTradingArrangements\u001B[0m\n",
       "│   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mInsiderTradingArrLineItems\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTradingArrByIndTable\u001B[0m\n",
       "│       │   ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTradingArrAxis\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllTradingArrangementsMember\u001B[0m\n",
       "│       │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mIndividualAxis\u001B[0m\n",
       "│       │       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllIndividualsMember\u001B[0m\n",
       "│       │           ├── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mDeirdreOBrienMember\u001B[0m\n",
       "│       │           └── \u001B[1;33maapl\u001B[0m \u001B[1;38;5;39mJeffWilliamsMember\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mMtrlTermsOfTrdArrTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTrdArrIndName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTrdArrIndTitle\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mRule10b51ArrAdoptedFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonRule10b51ArrAdoptedFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTrdArrAdoptionDate\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mRule10b51ArrTrmntdFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonRule10b51ArrTrmntdFlag\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTrdArrTerminationDate\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTrdArrDuration\u001B[0m\n",
       "│       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTrdArrSecuritiesAggAvailAmt\u001B[0m\n",
       "├── \u001B[1;34mhttp://xbrl.sec.gov/ecd/role/ErrCompDisclosure\u001B[0m\n",
       "│   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mRecoveryOfErrCompDisclosureLineItems\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mErrCompRecoveryTable\u001B[0m\n",
       "│       │   ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mRestatementDateAxis\u001B[0m\n",
       "│       │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mIndividualAxis\u001B[0m\n",
       "│       │       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllIndividualsMember\u001B[0m\n",
       "│       │           └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonNeosMember\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mRestatementDeterminationDate\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAggtErrCompAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mErrCompAnalysisTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mStkPrcOrTsrEstimationMethodTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mOutstandingAggtErrCompAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAggtErrCompNotYetDeterminedTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mForgoneRecoveryIndName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mForgoneRecoveryDueToExpenseOfEnforcementAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mForgoneRecoveryDueToViolationOfHomeCountryLawAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mForgoneRecoveryExplanationOfImpracticabilityTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mOutstandingRecoveryIndName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mOutstandingRecoveryCompAmt\u001B[0m\n",
       "│       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mRestatementDoesNotRequireRecoveryTextBlock\u001B[0m\n",
       "├── \u001B[1;34mhttp://xbrl.sec.gov/ecd/role/PvpDisclosure\u001B[0m\n",
       "│   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPayVsPerformanceDisclosureLineItems\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPvpTable\u001B[0m\n",
       "│       │   ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mExecutiveCategoryAxis\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllExecutiveCategoriesMember\u001B[0m\n",
       "│       │   │       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPeoMember\u001B[0m\n",
       "│       │   │       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonPeoNeoMember\u001B[0m\n",
       "│       │   ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mIndividualAxis\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllIndividualsMember\u001B[0m\n",
       "│       │   ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAdjToCompAxis\u001B[0m\n",
       "│       │   │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAllAdjToCompMember\u001B[0m\n",
       "│       │   └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mMeasureAxis\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPvpTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mCoSelectedMeasureName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNamedExecutiveOfficersFnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPeerGroupIssuersFnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mChangedPeerGroupFnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPeoTotalCompAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPeoActuallyPaidCompAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAdjToPeoCompFnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonPeoNeoAvgTotalCompAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonPeoNeoAvgCompActuallyPaidAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAdjToNonPeoNeoCompFnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mEquityValuationAssumptionDifferenceFnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mCompActuallyPaidVsTotalShareholderRtnTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mCompActuallyPaidVsNetIncomeTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mCompActuallyPaidVsCoSelectedMeasureTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTotalShareholderRtnVsPeerGroupTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mCompActuallyPaidVsOtherMeasureTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTabularListTableTextBlock\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mTotalShareholderRtnAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPeerGroupTotalShareholderRtnAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mus-gaap\u001B[0m \u001B[1;38;5;39mNetIncomeLoss\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mCoSelectedMeasureAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mOtherPerfMeasureAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAdjToCompAmt\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mPeoName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mMeasureName\u001B[0m\n",
       "│       ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mNonGaapMeasureDescriptionTextBlock\u001B[0m\n",
       "│       └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mAdditional402vDisclosureTextBlock\u001B[0m\n",
       "└── \u001B[1;34mhttp://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc\u001B[0m\n",
       "    └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mInsiderTradingPoliciesProcLineItems\u001B[0m\n",
       "        ├── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mInsiderTrdPoliciesProcAdoptedFlag\u001B[0m\n",
       "        └── \u001B[1;33mecd\u001B[0m \u001B[1;38;5;39mInsiderTrdPoliciesProcNotAdoptedTextBlock\u001B[0m"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "xbrl_data.presentation"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "eb6c6483-e4d1-47fb-9ead-b22ad4f7dc95",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "╭─────────────────────────────────────────── XBRL Data for \u001B[1;38;5;32mApple Inc. \u001B[0m ───────────────────────────────────────────╮\n",
       "│ \u001B[3m              XBRL Instance Document              \u001B[0m                                                              │\n",
       "│ ╭────────────┬─────────────────┬─────────────────╮                                                              │\n",
       "│ │\u001B[1m \u001B[0m\u001B[1mCompany   \u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mNumber of Facts\u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mDocument Period\u001B[0m\u001B[1m \u001B[0m│                                                              │\n",
       "│ ├────────────┼─────────────────┼─────────────────┤                                                              │\n",
       "│ │ Apple Inc. │ 1,164           │ 2023-09-30      │                                                              │\n",
       "│ ╰────────────┴─────────────────┴─────────────────╯                                                              │\n",
       "│ ╭────┬────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │\n",
       "│ │\u001B[1m \u001B[0m\u001B[1m  \u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mStatements                                                                                            \u001B[0m\u001B[1m \u001B[0m│ │\n",
       "│ ├────┼────────────────────────────────────────────────────────────────────────────────────────────────────────┤ │\n",
       "│ │ 0  │ \u001B[38;5;32mCover\u001B[0m\u001B[38;5;160mPage\u001B[0m                                                                                              │ │\n",
       "│ │ 1  │ \u001B[38;5;32mAuditor\u001B[0m\u001B[38;5;160mInformation\u001B[0m                                                                                     │ │\n",
       "│ │ 2  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFOPERATIONS\u001B[0m                                                                     │ │\n",
       "│ │ 3  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME\u001B[0m                                                            │ │\n",
       "│ │ 4  │ \u001B[38;5;32mCONSOLIDATEDBALANCESHEETS\u001B[0m                                                                              │ │\n",
       "│ │ 5  │ \u001B[38;5;32mCONSOLIDATEDBALANCESHEETS\u001B[0m\u001B[38;5;160mParenthetical\u001B[0m                                                                 │ │\n",
       "│ │ 6  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY\u001B[0m                                                             │ │\n",
       "│ │ 7  │ \u001B[38;5;32mCONSOLIDATEDSTATEMENTSOFCASHFLOWS\u001B[0m                                                                      │ │\n",
       "│ │ 8  │ \u001B[38;5;32mSummaryof\u001B[0m\u001B[38;5;160mSignificant\u001B[0m\u001B[38;5;71mAccounting\u001B[0m\u001B[38;5;32mPolicies\u001B[0m                                                                 │ │\n",
       "│ │ 9  │ \u001B[38;5;32mRevenue\u001B[0m                                                                                                │ │\n",
       "│ │ 10 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m                                                                                       │ │\n",
       "│ │ 11 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m                                                                                   │ │\n",
       "│ │ 12 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m                                                                              │ │\n",
       "│ │ 13 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                  │ │\n",
       "│ │ 14 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m                                                                                            │ │\n",
       "│ │ 15 │ \u001B[38;5;32mLeases\u001B[0m                                                                                                 │ │\n",
       "│ │ 16 │ \u001B[38;5;32mDebt\u001B[0m                                                                                                   │ │\n",
       "│ │ 17 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m                                                                                     │ │\n",
       "│ │ 18 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m                                                                                 │ │\n",
       "│ │ 19 │ \u001B[38;5;32mCommitments\u001B[0m\u001B[38;5;160mContingenciesand\u001B[0m\u001B[38;5;71mSupply\u001B[0m\u001B[38;5;32mConcentrations\u001B[0m                                                        │ │\n",
       "│ │ 20 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m                                                                    │ │\n",
       "│ │ 21 │ \u001B[38;5;32mSummaryof\u001B[0m\u001B[38;5;160mSignificant\u001B[0m\u001B[38;5;71mAccounting\u001B[0m\u001B[38;5;32mPolicies\u001B[0m\u001B[38;5;160mPolicies\u001B[0m                                                         │ │\n",
       "│ │ 22 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                                                          │ │\n",
       "│ │ 23 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mTables\u001B[0m                                                                                 │ │\n",
       "│ │ 24 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mTables\u001B[0m                                                                             │ │\n",
       "│ │ 25 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m\u001B[38;5;32mTables\u001B[0m                                                                        │ │\n",
       "│ │ 26 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                            │ │\n",
       "│ │ 27 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mTables\u001B[0m                                                                                      │ │\n",
       "│ │ 28 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                                                           │ │\n",
       "│ │ 29 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                                                             │ │\n",
       "│ │ 30 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m\u001B[38;5;71mTables\u001B[0m                                                                               │ │\n",
       "│ │ 31 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mTables\u001B[0m                                                                           │ │\n",
       "│ │ 32 │ \u001B[38;5;32mCommitments\u001B[0m\u001B[38;5;160mContingenciesand\u001B[0m\u001B[38;5;71mSupply\u001B[0m\u001B[38;5;32mConcentrations\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                  │ │\n",
       "│ │ 33 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mTables\u001B[0m                                                              │ │\n",
       "│ │ 34 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mAdditional\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                    │ │\n",
       "│ │ 35 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mNet\u001B[0m\u001B[38;5;71mSales\u001B[0m\u001B[38;5;32mDisaggregatedby\u001B[0m\u001B[38;5;160mSignificant\u001B[0m\u001B[38;5;71mProductsand\u001B[0m\u001B[38;5;32mServices\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                    │ │\n",
       "│ │ 36 │ \u001B[38;5;32mRevenue\u001B[0m\u001B[38;5;160mDeferred\u001B[0m\u001B[38;5;71mRevenue\u001B[0m\u001B[38;5;32mExpected\u001B[0m\u001B[38;5;160mTimingof\u001B[0m\u001B[38;5;71mRealization\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                               │ │\n",
       "│ │ 37 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mComputationof\u001B[0m\u001B[38;5;160mBasicand\u001B[0m\u001B[38;5;71mDiluted\u001B[0m\u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                    │ │\n",
       "│ │ 38 │ \u001B[38;5;32mEarnings\u001B[0m\u001B[38;5;160mPer\u001B[0m\u001B[38;5;71mShare\u001B[0m\u001B[38;5;32mAdditional\u001B[0m\u001B[38;5;160mInformation\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                           │ │\n",
       "│ │ 39 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mCash\u001B[0m\u001B[38;5;32mCash\u001B[0m\u001B[38;5;160mEquivalentsand\u001B[0m\u001B[38;5;71mMarketable\u001B[0m\u001B[38;5;32mSecurities\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                  │ │\n",
       "│ │ 40 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mNon\u001B[0m\u001B[38;5;32mCurrent\u001B[0m\u001B[38;5;160mMarketable\u001B[0m\u001B[38;5;71mDebt\u001B[0m\u001B[38;5;32mSecuritiesby\u001B[0m\u001B[38;5;160mContractual\u001B[0m\u001B[38;5;71mMaturity\u001B[0m\u001B[38;5;32mDetails\u001B[0m                     │ │\n",
       "│ │ 41 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mAdditional\u001B[0m\u001B[38;5;32mInformation\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                       │ │\n",
       "│ │ 42 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mNotional\u001B[0m\u001B[38;5;32mAmounts\u001B[0m\u001B[38;5;160mAssociatedwith\u001B[0m\u001B[38;5;71mDerivative\u001B[0m\u001B[38;5;32mInstruments\u001B[0m\u001B[38;5;160mDetails\u001B[0m                          │ │\n",
       "│ │ 43 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mGross\u001B[0m\u001B[38;5;32mFair\u001B[0m\u001B[38;5;160mValuesof\u001B[0m\u001B[38;5;71mDerivative\u001B[0m\u001B[38;5;32mAssetsand\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                             │ │\n",
       "│ │ 44 │ \u001B[38;5;32mFinancial\u001B[0m\u001B[38;5;160mInstruments\u001B[0m\u001B[38;5;71mDerivative\u001B[0m\u001B[38;5;32mInstruments\u001B[0m\u001B[38;5;160mDesignatedas\u001B[0m\u001B[38;5;71mFair\u001B[0m\u001B[38;5;32mValue\u001B[0m\u001B[38;5;160mHedgesand\u001B[0m\u001B[38;5;71mRelated\u001B[0m\u001B[38;5;32mHedged\u001B[0m\u001B[38;5;160mItems\u001B[0m\u001B[38;5;71mDetails\u001B[0m       │ │\n",
       "│ │ 45 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m\u001B[38;5;32mGross\u001B[0m\u001B[38;5;160mProperty\u001B[0m\u001B[38;5;71mPlantand\u001B[0m\u001B[38;5;32mEquipmentby\u001B[0m\u001B[38;5;160mMajor\u001B[0m\u001B[38;5;71mAsset\u001B[0m\u001B[38;5;32mClassand\u001B[0m\u001B[38;5;160mAccumulated\u001B[0m\u001B[38;5;71mDepreciation\u001B[0m\u001B[38;5;32mDet…\u001B[0m │ │\n",
       "│ │ 46 │ \u001B[38;5;32mProperty\u001B[0m\u001B[38;5;160mPlantand\u001B[0m\u001B[38;5;71mEquipment\u001B[0m\u001B[38;5;32mAdditional\u001B[0m\u001B[38;5;160mInformation\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                  │ │\n",
       "│ │ 47 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mNon\u001B[0m\u001B[38;5;32mCurrent\u001B[0m\u001B[38;5;160mAssets\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                      │ │\n",
       "│ │ 48 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mCurrent\u001B[0m\u001B[38;5;32mLiabilities\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                    │ │\n",
       "│ │ 49 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mNon\u001B[0m\u001B[38;5;32mCurrent\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                 │ │\n",
       "│ │ 50 │ \u001B[38;5;32mConsolidated\u001B[0m\u001B[38;5;160mFinancial\u001B[0m\u001B[38;5;71mStatement\u001B[0m\u001B[38;5;32mDetails\u001B[0m\u001B[38;5;160mOther\u001B[0m\u001B[38;5;71mIncome\u001B[0m\u001B[38;5;32mExpense\u001B[0m\u001B[38;5;160mNet\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                      │ │\n",
       "│ │ 51 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mProvisionfor\u001B[0m\u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                              │ │\n",
       "│ │ 52 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mAdditional\u001B[0m\u001B[38;5;32mInformation\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                                │ │\n",
       "│ │ 53 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mReconciliationof\u001B[0m\u001B[38;5;32mProvisionfor\u001B[0m\u001B[38;5;160mIncome\u001B[0m\u001B[38;5;71mTaxesto\u001B[0m\u001B[38;5;32mAmount\u001B[0m\u001B[38;5;160mComputedby\u001B[0m\u001B[38;5;71mApplyingthe\u001B[0m\u001B[38;5;32mStatutory\u001B[0m\u001B[38;5;160mFederal\u001B[0m\u001B[38;5;71mIncome\u001B[0m\u001B[38;5;32m…\u001B[0m │ │\n",
       "│ │ 54 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mSignificant\u001B[0m\u001B[38;5;32mComponentsof\u001B[0m\u001B[38;5;160mDeferred\u001B[0m\u001B[38;5;71mTax\u001B[0m\u001B[38;5;32mAssetsand\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                               │ │\n",
       "│ │ 55 │ \u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTaxes\u001B[0m\u001B[38;5;71mAggregate\u001B[0m\u001B[38;5;32mChangesin\u001B[0m\u001B[38;5;160mGross\u001B[0m\u001B[38;5;71mUnrecognized\u001B[0m\u001B[38;5;32mTax\u001B[0m\u001B[38;5;160mBenefits\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                       │ │\n",
       "│ │ 56 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mAdditional\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                     │ │\n",
       "│ │ 57 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mROU\u001B[0m\u001B[38;5;71mAssetsand\u001B[0m\u001B[38;5;32mLease\u001B[0m\u001B[38;5;160mLiabilities\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                              │ │\n",
       "│ │ 58 │ \u001B[38;5;32mLeases\u001B[0m\u001B[38;5;160mLease\u001B[0m\u001B[38;5;71mLiability\u001B[0m\u001B[38;5;32mMaturities\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                                  │ │\n",
       "│ │ 59 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mAdditional\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                                       │ │\n",
       "│ │ 60 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mSummaryof\u001B[0m\u001B[38;5;71mCash\u001B[0m\u001B[38;5;32mFlows\u001B[0m\u001B[38;5;160mAssociatedwith\u001B[0m\u001B[38;5;71mCommercial\u001B[0m\u001B[38;5;32mPaper\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                             │ │\n",
       "│ │ 61 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mSummaryof\u001B[0m\u001B[38;5;71mTerm\u001B[0m\u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                                           │ │\n",
       "│ │ 62 │ \u001B[38;5;32mDebt\u001B[0m\u001B[38;5;160mFuture\u001B[0m\u001B[38;5;71mPrincipal\u001B[0m\u001B[38;5;32mPaymentsfor\u001B[0m\u001B[38;5;160mTerm\u001B[0m\u001B[38;5;71mDebt\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                          │ │\n",
       "│ │ 63 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m\u001B[38;5;71mAdditional\u001B[0m\u001B[38;5;32mInformation\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                                         │ │\n",
       "│ │ 64 │ \u001B[38;5;32mShareholders\u001B[0m\u001B[38;5;160mEquity\u001B[0m\u001B[38;5;71mSharesof\u001B[0m\u001B[38;5;32mCommon\u001B[0m\u001B[38;5;160mStock\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                           │ │\n",
       "│ │ 65 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mAdditional\u001B[0m\u001B[38;5;160mInformation\u001B[0m\u001B[38;5;71mDetails\u001B[0m                                                     │ │\n",
       "│ │ 66 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mRestricted\u001B[0m\u001B[38;5;160mStock\u001B[0m\u001B[38;5;71mUnit\u001B[0m\u001B[38;5;32mActivityand\u001B[0m\u001B[38;5;160mRelated\u001B[0m\u001B[38;5;71mInformation\u001B[0m\u001B[38;5;32mDetails\u001B[0m                          │ │\n",
       "│ │ 67 │ \u001B[38;5;32mShare\u001B[0m\u001B[38;5;160mBased\u001B[0m\u001B[38;5;71mCompensation\u001B[0m\u001B[38;5;32mSummaryof\u001B[0m\u001B[38;5;160mShare\u001B[0m\u001B[38;5;71mBased\u001B[0m\u001B[38;5;32mCompensation\u001B[0m\u001B[38;5;160mExpenseandthe\u001B[0m\u001B[38;5;71mRelated\u001B[0m\u001B[38;5;32mIncome\u001B[0m\u001B[38;5;160mTax\u001B[0m\u001B[38;5;71mBenefit\u001B[0m\u001B[38;5;32mDetails\u001B[0m       │ │\n",
       "│ │ 68 │ \u001B[38;5;32mCommitments\u001B[0m\u001B[38;5;160mContingenciesand\u001B[0m\u001B[38;5;71mSupply\u001B[0m\u001B[38;5;32mConcentrations\u001B[0m\u001B[38;5;160mFuture\u001B[0m\u001B[38;5;71mPayments\u001B[0m\u001B[38;5;32mUnder\u001B[0m\u001B[38;5;160mUnconditional\u001B[0m\u001B[38;5;71mPurchase\u001B[0m\u001B[38;5;32mObligations\u001B[0m\u001B[38;5;160mDet…\u001B[0m │ │\n",
       "│ │ 69 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mInformationby\u001B[0m\u001B[38;5;71mReportable\u001B[0m\u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mDetails\u001B[0m                               │ │\n",
       "│ │ 70 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mReconciliationof\u001B[0m\u001B[38;5;71mSegment\u001B[0m\u001B[38;5;32mOperating\u001B[0m\u001B[38;5;160mIncometothe\u001B[0m\u001B[38;5;71mConsolidated\u001B[0m\u001B[38;5;32mStatementso…\u001B[0m │ │\n",
       "│ │ 71 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mNet\u001B[0m\u001B[38;5;71mSales\u001B[0m\u001B[38;5;32mDetails\u001B[0m                                                     │ │\n",
       "│ │ 72 │ \u001B[38;5;32mSegment\u001B[0m\u001B[38;5;160mInformationand\u001B[0m\u001B[38;5;71mGeographic\u001B[0m\u001B[38;5;32mData\u001B[0m\u001B[38;5;160mLong\u001B[0m\u001B[38;5;71mLived\u001B[0m\u001B[38;5;32mAssets\u001B[0m\u001B[38;5;160mDetails\u001B[0m                                              │ │\n",
       "│ │ 73 │ \u001B[38;5;32mAward\u001B[0m\u001B[38;5;160mTiming\u001B[0m\u001B[38;5;71mDisclosure\u001B[0m                                                                                  │ │\n",
       "│ │ 74 │ \u001B[38;5;32mInsider\u001B[0m\u001B[38;5;160mTrading\u001B[0m\u001B[38;5;71mArrangements\u001B[0m                                                                             │ │\n",
       "│ │ 75 │ \u001B[38;5;32mErr\u001B[0m\u001B[38;5;160mComp\u001B[0m\u001B[38;5;71mDisclosure\u001B[0m                                                                                      │ │\n",
       "│ │ 76 │ \u001B[38;5;32mPvp\u001B[0m\u001B[38;5;160mDisclosure\u001B[0m                                                                                          │ │\n",
       "│ │ 77 │ \u001B[38;5;32mInsider\u001B[0m\u001B[38;5;160mTrading\u001B[0m\u001B[38;5;71mPolicies\u001B[0m\u001B[38;5;32mProc\u001B[0m                                                                             │ │\n",
       "│ ╰────┴────────────────────────────────────────────────────────────────────────────────────────────────────────╯ │\n",
       "╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "xbrl_data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "18977678-e5dd-48e6-802b-225f35ab48c1",
   "metadata": {},
   "outputs": [],
   "source": [
    "statements = xbrl_data.statements"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4c9a79de-4bc8-407f-b3a9-f4e813c46a33",
   "metadata": {},
   "source": [
    "## Get the statement by name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "4a909ac4-6831-42e6-8afc-4b21f5c15e17",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "                                                    \u001B[1;38;5;196mApple Inc.\u001B[0m                                                     \n",
       "                                                       \u001B[1mCover\u001B[0m                                                       \n",
       "                                                                                                                   \n",
       " \u001B[1m \u001B[0m\u001B[1m                                                      \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m2023                                                  \u001B[0m\u001B[1m \u001B[0m \n",
       " ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
       "  \u001B[1;38;5;32mCover [Abstract]                                      \u001B[0m                                                           \n",
       "   Entities [Table]                                                                                                \n",
       "    Class of Stock [Axis]                                                                                          \n",
       "     Class of Stock [Domain]                                                                                       \n",
       "      Common Stock, $0.00001 par value per share                                                                   \n",
       "      1.375% Notes due 2024                                                                                        \n",
       "      0.000% Notes due 2025                                                                                        \n",
       "      0.875% Notes due 2025                                                                                        \n",
       "      1.625% Notes due 2026                                                                                        \n",
       "      2.000% Notes due 2027                                                                                        \n",
       "      1.375% Notes due 2029                                                                                        \n",
       "      3.050% Notes due 2029                                                                                        \n",
       "      0.500% Notes due 2031                                                                                        \n",
       "      3.600% Notes due 2042                                                                                        \n",
       "    Entity Information [Line Items]                                                                                \n",
       "     Document Type                                         10-K                                                    \n",
       "     Document Annual Report                                true                                                    \n",
       "     Current Fiscal Year End Date                          --09-30                                                 \n",
       "     Document Period End Date                              2023-09-30                                              \n",
       "     Document Transition Report                            false                                                   \n",
       "     Entity File Number                                    001-36743                                               \n",
       "     Entity Registrant Name                                Apple Inc.                                              \n",
       "     Entity Incorporation, State or Country Code           CA                                                      \n",
       "     Entity Tax Identification Number                      94-2404110                                              \n",
       "     Entity Address, Address Line One                      One Apple Park Way                                      \n",
       "     Entity Address, City or Town                          Cupertino                                               \n",
       "     Entity Address, State or Province                     CA                                                      \n",
       "     Entity Address, Postal Zip Code                       95014                                                   \n",
       "     City Area Code                                        408                                                     \n",
       "     Local Phone Number                                    996-1010                                                \n",
       "     Title of 12(b) Security                               Common Stock, $0.00001 par value per share              \n",
       "     Trading Symbol                                        AAPL                                                    \n",
       "     No Trading Symbol Flag                                true                                                    \n",
       "     Security Exchange Name                                NASDAQ                                                  \n",
       "     Entity Well-known Seasoned Issuer                     Yes                                                     \n",
       "     Entity Voluntary Filers                               No                                                      \n",
       "     Entity Current Reporting Status                       Yes                                                     \n",
       "     Entity Interactive Data Current                       Yes                                                     \n",
       "     Entity Filer Category                                 Large Accelerated Filer                                 \n",
       "     Entity Small Business                                 false                                                   \n",
       "     Entity Emerging Growth Company                        false                                                   \n",
       "     ICFR Auditor Attestation Flag                         true                                                    \n",
       "     Document Financial Statement Error Correction Flag    false                                                   \n",
       "     Entity Shell Company                                  false                                                   \n",
       "     Entity Public Float                                   2591165000000                                           \n",
       "     Entity Common Stock, Shares Outstanding (in shares)   15552752000                                             \n",
       "     Documents Incorporated by Reference                   Portions of the Registrant’s definitive proxy           \n",
       "                                                           statement relating to its 2024 annual meeting of        \n",
       "                                                           shareholders are incorporated by reference into Part    \n",
       "                                                           III of this Annual Report on Form 10-K where            \n",
       "                                                           indicated. The Registrant’s definitive proxy statement  \n",
       "                                                           will be filed with the U.S. Securities and Exchange     \n",
       "                                                           Commission within 120 days after the end of the fiscal  \n",
       "                                                           year to which this report relates.                      \n",
       "     Amendment Flag                                        false                                                   \n",
       "     Document Fiscal Year Focus                            2023                                                    \n",
       "     Document Fiscal Period Focus                          FY                                                      \n",
       "     Entity Central Index Key                              0000320193                                              \n",
       "                                                                                                                   "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statements['CoverPage']"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8a30e1eb-1db9-45eb-89fb-4f18a576de91",
   "metadata": {},
   "source": [
    "## Get a statement using the bracket accessor []"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "8ec5d458-a3b1-4fae-85a9-b536b24e84a0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "                                               \u001B[1;38;5;196mApple Inc.\u001B[0m                                                \n",
       "                                            \u001B[1mIncome Statement\u001B[0m                                             \n",
       "                                                                                                         \n",
       " \u001B[1m \u001B[0m\u001B[1m                                               \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m2023           \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m2022           \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m2021           \u001B[0m\u001B[1m \u001B[0m \n",
       " ─────────────────────────────────────────────────────────────────────────────────────────────────────── \n",
       "  \u001B[1;38;5;32mIncome Statement [Abstract]                    \u001B[0m                                                        \n",
       "   Statement [Table]                                                                                     \n",
       "    Product and Service [Axis]                                                                           \n",
       "     Product and Service [Domain]                                                                        \n",
       "      Products                                                                                           \n",
       "      Services                                                                                           \n",
       "    Statement [Line Items]                                                                               \n",
       "     Net sales                                      383,285,000,000   394,328,000,000   365,817,000,000  \n",
       "     Cost of sales                                  214,137,000,000   223,546,000,000   212,981,000,000  \n",
       "     Gross margin                                   169,148,000,000   170,782,000,000   152,836,000,000  \n",
       "  \u001B[1;38;5;32m   Operating expenses:                         \u001B[0m                                                        \n",
       "      Research and development                       29,915,000,000    26,251,000,000    21,914,000,000  \n",
       "      Selling, general and administrative            24,932,000,000    25,094,000,000    21,973,000,000  \n",
       "      Total operating expenses                       54,847,000,000    51,345,000,000    43,887,000,000  \n",
       "     Operating income                               114,301,000,000   119,437,000,000   108,949,000,000  \n",
       "     Other income/(expense), net                       -565,000,000      -334,000,000       258,000,000  \n",
       "     Income before provision for income taxes       113,736,000,000   119,103,000,000   109,207,000,000  \n",
       "     Provision for income taxes                      16,741,000,000    19,300,000,000    14,527,000,000  \n",
       "     Net income                                      96,995,000,000    99,803,000,000    94,680,000,000  \n",
       "  \u001B[1;38;5;32m   Earnings per share:                         \u001B[0m                                                        \n",
       "      Basic (in dollars per share)                             6.16              6.15              5.67  \n",
       "      Diluted (in dollars per share)                           6.13              6.11              5.61  \n",
       "  \u001B[1;38;5;32m   Shares used in computing earnings per share:\u001B[0m                                                        \n",
       "      Basic (in shares)                              15,744,231,000    16,215,963,000    16,701,272,000  \n",
       "      Diluted (in shares)                            15,812,547,000    16,325,819,000    16,864,919,000  \n",
       "                                                                                                         "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statements['CONSOLIDATEDSTATEMENTSOFOPERATIONS']"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d9d7106b-6c45-47ce-8898-b2acdb9843a8",
   "metadata": {},
   "source": [
    "## Get the statement by index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "83910bb3-2fae-4913-b3db-4f145edbac50",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "                       \u001B[1;38;5;196mApple Inc.\u001B[0m                        \n",
       "                   \u001B[1mAuditor Information\u001B[0m                   \n",
       "                                                         \n",
       " \u001B[1m \u001B[0m\u001B[1m                              \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m2023                \u001B[0m\u001B[1m \u001B[0m \n",
       " ─────────────────────────────────────────────────────── \n",
       "  \u001B[1;38;5;32mAuditor Information [Abstract]\u001B[0m                         \n",
       "   Auditor Name                    Ernst & Young LLP     \n",
       "   Auditor Location                San Jose, California  \n",
       "   Auditor Firm ID                 42                    \n",
       "                                                         "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statements[1]"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "82e6554b-ed31-42d7-acd8-9b72588e76d2",
   "metadata": {},
   "source": [
    "## Get the dataframe from the statement"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "379ab41b-6afc-4de6-963e-447dba317dce",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>2023</th>\n",
       "      <th>2022</th>\n",
       "      <th>2021</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>label</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Statement of Comprehensive Income [Abstract]</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Net income</th>\n",
       "      <td>96995000000</td>\n",
       "      <td>99803000000</td>\n",
       "      <td>94680000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Other comprehensive income/(loss):</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Change in foreign currency translation, net of tax</th>\n",
       "      <td>-765000000</td>\n",
       "      <td>-1511000000</td>\n",
       "      <td>501000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Change in unrealized gains/losses on derivative instruments, net of tax:</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Change in fair value of derivative instruments</th>\n",
       "      <td>323000000</td>\n",
       "      <td>3212000000</td>\n",
       "      <td>32000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Adjustment for net (gains)/losses realized and included in net income</th>\n",
       "      <td>-1717000000</td>\n",
       "      <td>-1074000000</td>\n",
       "      <td>-1003000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Total change in unrealized gains/losses on derivative instruments</th>\n",
       "      <td>-1394000000</td>\n",
       "      <td>2138000000</td>\n",
       "      <td>1035000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Change in unrealized gains/losses on marketable debt securities, net of tax:</th>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Change in fair value of marketable debt securities</th>\n",
       "      <td>1563000000</td>\n",
       "      <td>-12104000000</td>\n",
       "      <td>-694000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Adjustment for net (gains)/losses realized and included in net income</th>\n",
       "      <td>-253000000</td>\n",
       "      <td>-205000000</td>\n",
       "      <td>-273000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Total change in unrealized gains/losses on marketable debt securities</th>\n",
       "      <td>1816000000</td>\n",
       "      <td>-11899000000</td>\n",
       "      <td>-967000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Total other comprehensive income/(loss)</th>\n",
       "      <td>-343000000</td>\n",
       "      <td>-11272000000</td>\n",
       "      <td>569000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Total comprehensive income</th>\n",
       "      <td>96652000000</td>\n",
       "      <td>88531000000</td>\n",
       "      <td>95249000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                           2023          2022  \\\n",
       "label                                                                           \n",
       "Statement of Comprehensive Income [Abstract]                                    \n",
       "Net income                                          96995000000   99803000000   \n",
       "Other comprehensive income/(loss):                                              \n",
       "Change in foreign currency translation, net of tax   -765000000   -1511000000   \n",
       "Change in unrealized gains/losses on derivative...                              \n",
       "Change in fair value of derivative instruments        323000000    3212000000   \n",
       "Adjustment for net (gains)/losses realized and ...  -1717000000   -1074000000   \n",
       "Total change in unrealized gains/losses on deri...  -1394000000    2138000000   \n",
       "Change in unrealized gains/losses on marketable...                              \n",
       "Change in fair value of marketable debt securities   1563000000  -12104000000   \n",
       "Adjustment for net (gains)/losses realized and ...   -253000000    -205000000   \n",
       "Total change in unrealized gains/losses on mark...   1816000000  -11899000000   \n",
       "Total other comprehensive income/(loss)              -343000000  -11272000000   \n",
       "Total comprehensive income                          96652000000   88531000000   \n",
       "\n",
       "                                                           2021  \n",
       "label                                                            \n",
       "Statement of Comprehensive Income [Abstract]                     \n",
       "Net income                                          94680000000  \n",
       "Other comprehensive income/(loss):                               \n",
       "Change in foreign currency translation, net of tax    501000000  \n",
       "Change in unrealized gains/losses on derivative...               \n",
       "Change in fair value of derivative instruments         32000000  \n",
       "Adjustment for net (gains)/losses realized and ...  -1003000000  \n",
       "Total change in unrealized gains/losses on deri...   1035000000  \n",
       "Change in unrealized gains/losses on marketable...               \n",
       "Change in fair value of marketable debt securities   -694000000  \n",
       "Adjustment for net (gains)/losses realized and ...   -273000000  \n",
       "Total change in unrealized gains/losses on mark...   -967000000  \n",
       "Total other comprehensive income/(loss)               569000000  \n",
       "Total comprehensive income                          95249000000  "
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statements['CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME'].get_dataframe()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "027ce053-4f53-4ba3-b813-fe7729fc5e9c",
   "metadata": {},
   "source": [
    "## Concepts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "2b86dad1-24cc-486f-876a-0e7edf1b79be",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract',\n",
       " 'us-gaap_NetIncomeLoss',\n",
       " 'us-gaap_ComprehensiveIncomeNetOfTaxAbstract',\n",
       " 'us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax',\n",
       " 'us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesNetOfTaxPeriodIncreaseDecreaseAbstract',\n",
       " 'aapl_OtherComprehensiveIncomeLossDerivativeInstrumentGainLossbeforeReclassificationafterTax',\n",
       " 'us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax',\n",
       " 'aapl_OtherComprehensiveIncomeLossDerivativeInstrumentGainLossafterReclassificationandTax',\n",
       " 'us-gaap_OtherComprehensiveIncomeAvailableForSaleSecuritiesAdjustmentNetOfTaxPeriodIncreaseDecreaseAbstract',\n",
       " 'us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax',\n",
       " 'us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax',\n",
       " 'us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax',\n",
       " 'us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent',\n",
       " 'us-gaap_ComprehensiveIncomeNetOfTax']"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statement = statements['CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME']\n",
    "statement.concepts"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "707f0354-8c7a-4071-8bf9-27d620ba2c3c",
   "metadata": {},
   "source": [
    "## Labels"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "c28b1af7-e6fa-42bb-8fc9-fd8dc02714b8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Statement of Comprehensive Income [Abstract]',\n",
       " 'Net income',\n",
       " 'Other comprehensive income/(loss):',\n",
       " 'Change in foreign currency translation, net of tax',\n",
       " 'Change in unrealized gains/losses on derivative instruments, net of tax:',\n",
       " 'Change in fair value of derivative instruments',\n",
       " 'Adjustment for net (gains)/losses realized and included in net income',\n",
       " 'Total change in unrealized gains/losses on derivative instruments',\n",
       " 'Change in unrealized gains/losses on marketable debt securities, net of tax:',\n",
       " 'Change in fair value of marketable debt securities',\n",
       " 'Adjustment for net (gains)/losses realized and included in net income',\n",
       " 'Total change in unrealized gains/losses on marketable debt securities',\n",
       " 'Total other comprehensive income/(loss)',\n",
       " 'Total comprehensive income']"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statement.labels"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "88f9baff-0283-4a85-afd8-1e143c267557",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'96995000000'"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "statement.get_concept('us-gaap:NetIncomeLoss').value.get('2023')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8d8fb670-f8b0-4406-be37-271427510715",
   "metadata": {},
   "source": [
    "## XBRL Instance"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "544c9194-cb42-43d5-b577-576e5789aebc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "╭──────────────────────────────────────────────────── Filings ────────────────────────────────────────────────────╮\n",
       "│                                                                                                                 │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m  \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mcik    \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mcompany                                 \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71mform  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39mfiling_date\u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1maccession_number    \u001B[0m\u001B[1m \u001B[0m        │\n",
       "│  ───────────────────────────────────────────────────────────────────────────────────────────────────────        │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m0 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1000275\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mROYAL BANK OF CANADA                    \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m424B2 \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0000950103-24-012010\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   1    1000275   ROYAL BANK OF CANADA                      \u001B[38;5;71m \u001B[0m\u001B[38;5;71m424B2 \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0000950103-24-012025         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m2 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1001115\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mGEOSPACE TECHNOLOGIES CORP              \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001437749-24-025790\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   3    100122    TUCSON ELECTRIC POWER CO                  \u001B[38;5;71m \u001B[0m\u001B[38;5;71m8-K   \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001193125-24-197596         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m4 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1001316\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mTG THERAPEUTICS, INC.                   \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-K/A\u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001437749-24-025850\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   5    1001316   TG THERAPEUTICS, INC.                     \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001437749-24-025853         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m6 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1002910\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mAMEREN CORP                             \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001104659-24-087819\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   7    1003815   BCTC IV ASSIGNOR CORP                     \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001410578-24-001261         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m8 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1005286\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mLIFECORE BIOMEDICAL, INC. \\DE\\          \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001005286-24-000110\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   9    1005286   LIFECORE BIOMEDICAL, INC. \\DE\\            \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001005286-24-000111         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m10\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1005286\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mLIFECORE BIOMEDICAL, INC. \\DE\\          \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001005286-24-000112\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   11   1006028   PURE BIOSCIENCE, INC.                     \u001B[38;5;71m \u001B[0m\u001B[38;5;71m8-K   \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001493152-24-030966         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m12\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1008848\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mAcorda Therapeutics, Inc.               \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0000950170-24-094382\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   13   1010324   DRH Phoenix East Construction, Inc.       \u001B[38;5;71m \u001B[0m\u001B[38;5;71m424B2 \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001193125-24-197822         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m14\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1010326\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mCONTINENTAL HOMES INC                   \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m424B2 \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001193125-24-197822\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   15   1010337   KDB HOMES INC                             \u001B[38;5;71m \u001B[0m\u001B[38;5;71m424B2 \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001193125-24-197822         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m16\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1010338\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mCONTINENTAL RESIDENTIAL INC             \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m424B2 \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001193125-24-197822\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   17   1012019   RUSH ENTERPRISES INC \\TX\\                 \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001437749-24-025891         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m18\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m101295 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mUNITED GUARDIAN INC                     \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001171843-24-004632\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   19   1013880   TTEC Holdings, Inc.                       \u001B[38;5;71m \u001B[0m\u001B[38;5;71m8-K   \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001104659-24-087830         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m20\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1014763\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mAinos, Inc.                             \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001493152-24-030970\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   21   101538    UNITED STATES ANTIMONY CORP               \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001654954-24-010214         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m22\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m101538 \u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mUNITED STATES ANTIMONY CORP             \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001654954-24-010187\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   23   101538    UNITED STATES ANTIMONY CORP               \u001B[38;5;71m \u001B[0m\u001B[38;5;71m8-K   \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001654954-24-010212         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m24\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1015739\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mAWARE INC /MA/                          \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0000950170-24-094716\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   25   1017303   TRANSACT TECHNOLOGIES INC                 \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001140361-24-036631         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m26\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1021561\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mNU SKIN ENTERPRISES, INC.               \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001140361-24-036467\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   27   1031235   Global Self Storage, Inc.                 \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0000950170-24-094717         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m28\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1031235\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mGlobal Self Storage, Inc.               \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0000950170-24-094755\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   29   103145    VEECO INSTRUMENTS INC                     \u001B[38;5;71m \u001B[0m\u001B[38;5;71mS-8   \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001104659-24-087798         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m30\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1032208\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mSEMPRA                                  \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001193125-24-197901\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   31   1035092   SHORE BANCSHARES INC                      \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001628280-24-036376         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m32\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1036044\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mIdentiv, Inc.                           \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0000950170-24-094283\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   33   1036262   INTEST CORP                               \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001437749-24-025878         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m34\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1038773\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mSMARTFINANCIAL INC.                     \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m10-Q  \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001558370-24-011759\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   35   1041657   URBAN ONE, INC.                           \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001041657-24-000006         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m36\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1041657\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mURBAN ONE, INC.                         \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001041657-24-000008\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   37   1045520   CANADIAN IMPERIAL BANK OF COMMERCE /CAN/  \u001B[38;5;71m \u001B[0m\u001B[38;5;71m424B2 \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001104659-24-087685         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m38\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1045520\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mCANADIAN IMPERIAL BANK OF COMMERCE /CAN/\u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m424B2 \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001104659-24-087699\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   39   1045942   Track Group, Inc.                         \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001437749-24-025664         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m40\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1045942\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mTrack Group, Inc.                       \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001437749-24-025666\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   41   1046025   HERITAGE FINANCIAL CORP /WA/              \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001046025-24-000164         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m42\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1047335\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mNATIONAL HEALTHCARE CORP                \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001437749-24-025685\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   43   1047335   NATIONAL HEALTHCARE CORP                  \u001B[38;5;71m \u001B[0m\u001B[38;5;71m8-K   \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001437749-24-025687         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m44\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1048286\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mMARRIOTT INTERNATIONAL INC /MD/         \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m424B5 \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001193125-24-197825\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   45   1050915   QUANTA SERVICES, INC.                     \u001B[38;5;71m \u001B[0m\u001B[38;5;71m424B5 \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001193125-24-197431         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m46\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1050915\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mQUANTA SERVICES, INC.                   \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001193125-24-197895\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   47   1051627   AXT INC                                   \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001558370-24-011747         │\n",
       "│  \u001B[1m \u001B[0m\u001B[1m48\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1m1052752\u001B[0m\u001B[1m \u001B[0m \u001B[1m \u001B[0m\u001B[1mGETTY REALTY CORP /MD/                  \u001B[0m\u001B[1m \u001B[0m \u001B[1;38;5;71m \u001B[0m\u001B[1;38;5;71m8-K   \u001B[0m\u001B[1;38;5;71m \u001B[0m \u001B[1;38;5;39m \u001B[0m\u001B[1;38;5;39m2024-08-09 \u001B[0m\u001B[1;38;5;39m \u001B[0m \u001B[1m \u001B[0m\u001B[1m0001193125-24-197878\u001B[0m\u001B[1m \u001B[0m        │\n",
       "│   49   1053691   CervoMed Inc.                             \u001B[38;5;71m \u001B[0m\u001B[38;5;71m10-Q  \u001B[0m\u001B[38;5;71m \u001B[0m \u001B[38;5;39m \u001B[0m\u001B[38;5;39m2024-08-09 \u001B[0m\u001B[38;5;39m \u001B[0m  0001437749-24-025875         │\n",
       "│                                                                                                                 │\n",
       "│ Showing 50 of 16,836 filings                                                                                    │\n",
       "╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "filings = get_filings(index=\"xbrl\")\n",
    "filings"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "44bb87fe-a6bf-4a52-bc71-92f715f69b88",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"></pre>\n"
      ],
      "text/plain": []
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "\u001B[3m          XBRL Instance Document          \u001B[0m\n",
       "╭──────────────────────┬─────────────────╮\n",
       "│\u001B[1m \u001B[0m\u001B[1mCompany             \u001B[0m\u001B[1m \u001B[0m│\u001B[1m \u001B[0m\u001B[1mNumber of Facts\u001B[0m\u001B[1m \u001B[0m│\n",
       "├──────────────────────┼─────────────────┤\n",
       "│ ROYAL BANK OF CANADA │ 8               │\n",
       "╰──────────────────────┴─────────────────╯"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "filing = Filing(form='424B2', filing_date='2024-08-09', company='ROYAL BANK OF CANADA', cik=1000275, accession_no='0000950103-24-012010')\n",
    "instance = filing.xbrl()\n",
    "instance"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "d095d24f-f134-4625-8d4d-42e51482d9f9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>value</th>\n",
       "      <th>units</th>\n",
       "      <th>decimals</th>\n",
       "      <th>start_date</th>\n",
       "      <th>end_date</th>\n",
       "      <th>period_type</th>\n",
       "      <th>duration</th>\n",
       "      <th>context_id</th>\n",
       "      <th>entity_id</th>\n",
       "      <th>dimensions</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>ffd:SubmissnTp</td>\n",
       "      <td>424B2</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>ffd:FeeExhibitTp</td>\n",
       "      <td>EX-FILING FEES</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>dei:EntityCentralIndexKey</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>ffd:RegnFileNb</td>\n",
       "      <td>333-275898</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>ffd:FormTp</td>\n",
       "      <td>F-3</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>dei:EntityRegistrantName</td>\n",
       "      <td>ROYAL BANK OF CANADA</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>ffd:NrrtvMaxAggtOfferingPric</td>\n",
       "      <td>1269000</td>\n",
       "      <td>USD</td>\n",
       "      <td>INF</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>ffd:FnlPrspctsFlg</td>\n",
       "      <td>true</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                        concept                 value units decimals  \\\n",
       "0                ffd:SubmissnTp                 424B2  None     None   \n",
       "1              ffd:FeeExhibitTp        EX-FILING FEES  None     None   \n",
       "2     dei:EntityCentralIndexKey            0001000275  None     None   \n",
       "3                ffd:RegnFileNb            333-275898  None     None   \n",
       "4                    ffd:FormTp                   F-3  None     None   \n",
       "5      dei:EntityRegistrantName  ROYAL BANK OF CANADA  None     None   \n",
       "6  ffd:NrrtvMaxAggtOfferingPric               1269000   USD      INF   \n",
       "7             ffd:FnlPrspctsFlg                  true  None     None   \n",
       "\n",
       "   start_date    end_date period_type duration context_id   entity_id  \\\n",
       "0  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "1  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "2  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "3  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "4  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "5  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "6  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "7  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "\n",
       "  dimensions  \n",
       "0         {}  \n",
       "1         {}  \n",
       "2         {}  \n",
       "3         {}  \n",
       "4         {}  \n",
       "5         {}  \n",
       "6         {}  \n",
       "7         {}  "
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "instance.facts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "2b40b822-f66a-4af9-a5e1-87d5901f206e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>value</th>\n",
       "      <th>units</th>\n",
       "      <th>decimals</th>\n",
       "      <th>start_date</th>\n",
       "      <th>end_date</th>\n",
       "      <th>period_type</th>\n",
       "      <th>duration</th>\n",
       "      <th>context_id</th>\n",
       "      <th>entity_id</th>\n",
       "      <th>dimensions</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>ffd:FormTp</td>\n",
       "      <td>F-3</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "      concept value units decimals  start_date    end_date period_type  \\\n",
       "4  ffd:FormTp   F-3  None     None  2024-08-09  2024-08-09     instant   \n",
       "\n",
       "  duration context_id   entity_id dimensions  \n",
       "4  1 month   c_report  0001000275         {}  "
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "instance.facts.query(\"concept=='ffd:FormTp'\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "416d5aca-98d0-4828-9884-41c9152b7fd9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>value</th>\n",
       "      <th>units</th>\n",
       "      <th>decimals</th>\n",
       "      <th>start_date</th>\n",
       "      <th>end_date</th>\n",
       "      <th>period_type</th>\n",
       "      <th>duration</th>\n",
       "      <th>context_id</th>\n",
       "      <th>entity_id</th>\n",
       "      <th>dimensions</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>dei:EntityRegistrantName</td>\n",
       "      <td>ROYAL BANK OF CANADA</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                    concept                 value units decimals  start_date  \\\n",
       "5  dei:EntityRegistrantName  ROYAL BANK OF CANADA  None     None  2024-08-09   \n",
       "\n",
       "     end_date period_type duration context_id   entity_id dimensions  \n",
       "5  2024-08-09     instant  1 month   c_report  0001000275         {}  "
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "instance.query_facts(concept=\"dei:EntityRegistrantName\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "a09238e8-7bc9-4c0d-b74b-7e7717268c70",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>concept</th>\n",
       "      <th>value</th>\n",
       "      <th>units</th>\n",
       "      <th>decimals</th>\n",
       "      <th>start_date</th>\n",
       "      <th>end_date</th>\n",
       "      <th>period_type</th>\n",
       "      <th>duration</th>\n",
       "      <th>context_id</th>\n",
       "      <th>entity_id</th>\n",
       "      <th>dimensions</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>ffd:SubmissnTp</td>\n",
       "      <td>424B2</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>ffd:FeeExhibitTp</td>\n",
       "      <td>EX-FILING FEES</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>dei:EntityCentralIndexKey</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>ffd:RegnFileNb</td>\n",
       "      <td>333-275898</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>ffd:FormTp</td>\n",
       "      <td>F-3</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>dei:EntityRegistrantName</td>\n",
       "      <td>ROYAL BANK OF CANADA</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>ffd:NrrtvMaxAggtOfferingPric</td>\n",
       "      <td>1269000</td>\n",
       "      <td>USD</td>\n",
       "      <td>INF</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>ffd:FnlPrspctsFlg</td>\n",
       "      <td>true</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>2024-08-09</td>\n",
       "      <td>instant</td>\n",
       "      <td>1 month</td>\n",
       "      <td>c_report</td>\n",
       "      <td>0001000275</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                        concept                 value units decimals  \\\n",
       "0                ffd:SubmissnTp                 424B2  None     None   \n",
       "1              ffd:FeeExhibitTp        EX-FILING FEES  None     None   \n",
       "2     dei:EntityCentralIndexKey            0001000275  None     None   \n",
       "3                ffd:RegnFileNb            333-275898  None     None   \n",
       "4                    ffd:FormTp                   F-3  None     None   \n",
       "5      dei:EntityRegistrantName  ROYAL BANK OF CANADA  None     None   \n",
       "6  ffd:NrrtvMaxAggtOfferingPric               1269000   USD      INF   \n",
       "7             ffd:FnlPrspctsFlg                  true  None     None   \n",
       "\n",
       "   start_date    end_date period_type duration context_id   entity_id  \\\n",
       "0  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "1  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "2  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "3  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "4  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "5  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "6  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "7  2024-08-09  2024-08-09     instant  1 month   c_report  0001000275   \n",
       "\n",
       "  dimensions  \n",
       "0         {}  \n",
       "1         {}  \n",
       "2         {}  \n",
       "3         {}  \n",
       "4         {}  \n",
       "5         {}  \n",
       "6         {}  \n",
       "7         {}  "
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "instance.query_facts(start_date='2024-08-09')"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
